-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[CssBaseline] Make dark mode scrollbar overrides an optional function #24780
[CssBaseline] Make dark mode scrollbar overrides an optional function #24780
Conversation
f9d5638
to
9929999
Compare
9929999
to
58dffa6
Compare
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 have moved darkScrollbar
to the core as, so far, we aim to have the system focus on providing an enhanced API on top of styled()
. It's meant to solve the low-level application of CSS. I have also moved the function to TypeScript.
components: { | ||
MuiCssBaseline: { | ||
styleOverrides: { | ||
body: paletteMode === 'dark' ? darkScrollbar() : null, |
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 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 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.
Not personally, but I get it, which is why I didn't comment further.
Co-authored-by: Matt <github@nospam.33m.co>
Closes #23520