-
Notifications
You must be signed in to change notification settings - Fork 832
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
[RFC] Should use pseudo-classes #1845
Labels
Comments
Which pseudo-class do you propose for |
@dmtrKovalenko We have been using |
There is no |
The idea would be to create a |
dmtrKovalenko
added a commit
that referenced
this issue
Jul 13, 2020
todor-a
pushed a commit
to todor-a/material-ui-pickers
that referenced
this issue
Jul 18, 2020
* Change component name from MuiPickers to MuiPicker * Name root classnames "root" * Use pseudo-classes for disabled styling * Remove useless yearDisabled class * Update demo and typescript tests for overrides * Repalce MuiPicker with MuiPickers * Consolidate right component display name with mui component name * Update index.ts reexports to match component display names * Remove useless parameter * Fix docs example * Fix override example tsc * Use pseudo-classes for selected and disabled, closes mui#1845 * Address PR feedback * Update lib/src/Picker/Picker.tsx Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * Update lib/src/views/Clock/Clock.tsx Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com> * Make more convenient css classes names * Remove today border from selected day * Remove useless comment * Update tests * Fix global overrid of Mui-selected and Mui-disabled classes * Use theme.palette.secondary instead of hint * Fix linter * Fix incorrect package prefix Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Material-UI has the concept of pseudo-classes that I believe we could leverage more often in the picker components. The concept is detailed in https://material-ui.com/customization/components/#pseudo-classes, it also comes with an explanation of why and when it can be interesting.
I have founds these potential states we might likely want to refactor to ease customizations:
The text was updated successfully, but these errors were encountered: