-
Notifications
You must be signed in to change notification settings - Fork 23
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(theme): fixed that all disabled elements used a disable background color instead of just disabled tabs #122
fix(theme): fixed that all disabled elements used a disable background color instead of just disabled tabs #122
Conversation
Changed Packages
|
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.
Disabled buttons are fixed, just left a comment about the tab button being gray issue.
@@ -436,7 +436,7 @@ export const createComponents = (themeConfig: ThemeConfig): Components => { | |||
root: { | |||
textTransform: 'none', | |||
minWidth: 'initial !important', | |||
'&.Mui-disabled': { | |||
'&:disabled': { | |||
backgroundColor: general.disabledBackground, |
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.
Then I can just remove this disabled code. I thought setting a gray background to the tab was exactly what we want to make it more clear that the tab is disabled.
With just the different text Color is really hard to see if a tab is disabled. I will check with @ShiranHi and the PF 5/6 documentation.
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.
Right, let's follow PF guidelines. Do they use the same gray color for both light and dark mode?
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.
…d color instead of just disabled tabs Signed-off-by: Christoph Jerolimov <[email protected]>
5faeb4b
to
249c5fa
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.
/lgtm
Thank you 🤝
…per#122 was merged Signed-off-by: Christoph Jerolimov <[email protected]>
…elevations (#126) * fix(theme): fix/remove different paper background colors/shades in MUI v5 Signed-off-by: Christoph Jerolimov <[email protected]> * fix(theme): remove unused Mui-Disabled workaround after #122 was merged Signed-off-by: Christoph Jerolimov <[email protected]> * fix(theme): replace the paper shadow and added a border to all paper elevations Signed-off-by: Christoph Jerolimov <[email protected]> --------- Signed-off-by: Christoph Jerolimov <[email protected]>
…d color instead of just disabled tabs (redhat-developer#122) Signed-off-by: Christoph Jerolimov <[email protected]>
…elevations (redhat-developer#126) * fix(theme): fix/remove different paper background colors/shades in MUI v5 Signed-off-by: Christoph Jerolimov <[email protected]> * fix(theme): remove unused Mui-Disabled workaround after redhat-developer#122 was merged Signed-off-by: Christoph Jerolimov <[email protected]> * fix(theme): replace the paper shadow and added a border to all paper elevations Signed-off-by: Christoph Jerolimov <[email protected]> --------- Signed-off-by: Christoph Jerolimov <[email protected]>
Hey, I just made a Pull Request!
TODO
✔️ Checklist