-
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
refactor(styles): set CSS vars in pin
mixin
#1296
base: main
Are you sure you want to change the base?
Conversation
Playwright Test Component is ready. |
Preview is ready. |
e033e64
to
d578050
Compare
var(#{$-pin-mixin-variables-ns}-top-left) | ||
var(#{$-pin-mixin-variables-ns}-top-right) | ||
var(#{$-pin-mixin-variables-ns}-bottom-right) | ||
var(#{$-pin-mixin-variables-ns}-bottom-left) |
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.
RTL support degradation
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?
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.
physical properties instead of logical ones
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.
But property is border-radius
, it is rtl compatible
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.
There should be no such api like top-left
, bottom-right
. Instead we should only use logical names: start-start
, end-end
, etc.
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.
Oh, i will rename vars, no problem
@each $selector in $selectors { | ||
&#{get-pin-selector(#{$block}_pin_round-round, $selector, $append)} { | ||
border-radius: $radius; | ||
@include -pin-mixin-variables-from-list($radius); |
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.
This would break customization via CSS API, see "Custom" story of Button
This will set CSS-vars in private namespace, that will allow to developer reuse
border-radius
in children elements, for example to match nested elementborder-radius
by reducing it viacalc()
.