-
Notifications
You must be signed in to change notification settings - Fork 99
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(Card): use common constants for card's radiuses #1682
Conversation
Preview is ready. |
Visual Tests Report is ready. |
src/components/Card/Card.scss
Outdated
@@ -157,11 +157,11 @@ $block: '.#{variables.$ns}card'; | |||
|
|||
&_size { | |||
&_m { | |||
--_--border-radius: 8px; | |||
--_--border-radius: var(--g-border-radius-l); |
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.
Why we use --g-border-radius-l
for size_m
?
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.
Card's border sizes don't have straight accordance to radius constants. I have choosen constants by values.
https://github.com/gravity-ui/uikit/blob/main/styles/themes/common/_index.scss#L13
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.
@amje I think it is a not good idea to use symantic variables in such cases
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.
What do you think about adding variables for cards to _index.scss?
For example:
—g-border-radius-card-m
—g-border-radius-card-l
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.
source:
feat: add border radius tab landing#220 (comment)