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

[ToggleButton] Add color prop #25390

Merged
merged 8 commits into from
Mar 19, 2021

Conversation

AlfredoGJ
Copy link
Contributor

@AlfredoGJ AlfredoGJ commented Mar 17, 2021

This PR is my approach to fix #23755

@mui-pr-bot
Copy link

mui-pr-bot commented Mar 17, 2021

Details of bundle changes

@material-ui/core: parsed: +0.16% , gzip: +0.05%
@material-ui/lab: parsed: +0.21% , gzip: +0.08%

Generated by 🚫 dangerJS against 7bfda8d

@oliviertassinari oliviertassinari added component: toggle button This is the name of the generic UI component, not the React module! new feature New feature or request labels Mar 17, 2021
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 updated the PR with the following:

  • Rename the default value of the color away from "default". This is related to [RFC] color prop API #13028.
  • Prepare the support of any colors
  • Fix the CI
  • Simplify the tests
  • Increase the CSS specificity for pseudo-classes
  • Update the docs side panel
  • Update the usage of the design token to increase consistency and to fit a bit better the spec (seems to)

Regarding what's left:

  • I wonder if we shouldn't do action -> text.primary?
  • I believe we have the addition of a new demo in the documentation :)

@oliviertassinari oliviertassinari force-pushed the ToggleButton/add-color-prop branch from a9c7643 to 5524f88 Compare March 17, 2021 16:06
@oliviertassinari oliviertassinari force-pushed the ToggleButton/add-color-prop branch from d2141ee to 5c7c7ec Compare March 18, 2021 23:54
@oliviertassinari oliviertassinari force-pushed the ToggleButton/add-color-prop branch from 5c7c7ec to 77bdfc0 Compare March 18, 2021 23:56
@AlfredoGJ
Copy link
Contributor Author

Thanks @oliviertassinari, you did most of the work. 😃

@oliviertassinari oliviertassinari merged commit e1f56a4 into mui:next Mar 19, 2021
@oliviertassinari
Copy link
Member

@AlfredoGJ Hopefully, the changes that I have done make sense and can be leveraged for future contributions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: toggle button This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ToggleButton] Add a color prop
3 participants