Skip to content
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

Merged

Conversation

dborstelmann
Copy link
Contributor

Closes #23520

@mui-pr-bot
Copy link

mui-pr-bot commented Feb 5, 2021

Details of bundle changes

Generated by 🚫 dangerJS against b3312be

@oliviertassinari oliviertassinari added the component: CssBaseline The React component label Feb 7, 2021
@oliviertassinari oliviertassinari changed the title [CssBasline] Make dark mode scrollbar overrides an optional function [CssBaseline] Make dark mode scrollbar overrides an optional function Feb 7, 2021
@oliviertassinari oliviertassinari force-pushed the optional-dark-mode-scrollbar branch 2 times, most recently from f9d5638 to 9929999 Compare February 7, 2021 22:50
@oliviertassinari oliviertassinari added the new feature New feature or request label Feb 7, 2021
@oliviertassinari oliviertassinari force-pushed the optional-dark-mode-scrollbar branch from 9929999 to 58dffa6 Compare February 7, 2021 22:51
Copy link
Member

@oliviertassinari oliviertassinari left a 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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

Copy link
Member

@oliviertassinari oliviertassinari Feb 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying you would rather not see it used in the documentation? Most of the audience is on Windows/Linux. Maybe I'm not troubled by the behavior because I have my scrollbar configured on macOS to behave like on Windows/Linux.

Capture d’écran 2021-02-08 à 00 54 05

Copy link
Member

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>
@oliviertassinari oliviertassinari merged commit 2ef5488 into mui:next Feb 8, 2021
@dborstelmann dborstelmann deleted the optional-dark-mode-scrollbar branch February 8, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: CssBaseline The React component new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CssBaseline] Persistent scrollbar in dark mode
4 participants