-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
605c7db
to
8e8de23
Compare
Preview is ready. |
#{$image}_inner#{$image}_inner_radius { | ||
border-radius: $borderRadius; | ||
} | ||
} |
There was a problem hiding this comment.
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 && ( |
There was a problem hiding this comment.
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 = () => { |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
No description provided.