-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(react-slider): Export internal CSS vars #33682
base: master
Are you sure you want to change the base?
fix(react-slider): Export internal CSS vars #33682
Conversation
@@ -0,0 +1,7 @@ | |||
{ |
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.
🕵🏾♀️ visual regressions to review in the fluentuiv9 Visual Regression Report
Avatar Converged 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Avatar Converged.Badge Mask RTL.chromium.png | 1 | Changed |
Avatar Converged.badgeMask.chromium.png | 2 | Changed |
Drawer 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
Drawer.Full Overlay Dark Mode.chromium.png | 983 | Changed |
📊 Bundle size reportUnchanged fixtures
|
Pull request demo site: URL |
}; | ||
|
||
const { sliderDirectionVar, sliderStepsPercentVar, sliderProgressVar } = sliderCSSVars; |
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.
deconstructing all the vars out here saves a bunch of code below. 61 vars with sliderCSSVars prefix. sliderCSSVars.sliderThumbSizeVar
could simply be sliderThumbSizeVar
yeah, this works fine. my only last suggestion would be to write a story about customizing, which would also validate the work. |
Partner's ask. Discussed it with @micahgodbolt
Previous Behavior
CSS variables were internal
New Behavior
Exported those variables