Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add image card sub-block #807

Merged
merged 6 commits into from
Feb 14, 2024
Merged

feat: add image card sub-block #807

merged 6 commits into from
Feb 14, 2024

Conversation

qradle-yndx
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

#{$image}_inner#{$image}_inner_radius {
border-radius: $borderRadius;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add empty line

className={b({border, 'with-content': hasContent, direction})}
style={{backgroundColor}}
>
{direction === ImageCardDirection.Direct && (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to change the direction with style, not with code.

flex-direction rule in container

</div>
);
};
const renderImage = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and when we change directions with style we dont need this functions, we'll render this code immediately in return()

@@ -57,6 +58,17 @@ export interface IconWrapperProps {
icon?: PositionedIcon;
}

export enum ImageCardMargins {
None = 'none',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need the none parameter? We can just have a default state (now is none) and change it somehow when there is a demand for s or m

@qradle-yndx qradle-yndx requested a review from NikitaCG February 13, 2024 14:48
@qradle-yndx qradle-yndx merged commit 52890dd into main Feb 14, 2024
3 checks passed
@qradle-yndx qradle-yndx deleted the feat/image-card branch February 14, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants