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

[Fab] Add support for the default theme colors #30846

Merged
merged 6 commits into from
Feb 1, 2022

Conversation

alisasanib
Copy link
Contributor

@alisasanib alisasanib commented Jan 30, 2022

Fixes: #30665

CodeSandBox Demo

Problems:
Fab component only supports primary and secondary values for its color, and it does not support other values such as info, success, etc. It is expected that Fab component accepts them, such as the Button component.

Solution:
changing the condition for the color classes and values, and adding them to its valid proptypes.

@mui-bot
Copy link

mui-bot commented Jan 30, 2022

Details of bundle changes

Generated by 🚫 dangerJS against 60b82b3

@mnajdova mnajdova added component: Fab The React component. new feature New feature or request labels Jan 31, 2022
@alisasanib alisasanib requested a review from mnajdova January 31, 2022 11:56
@hbjORbj hbjORbj merged commit f70b22d into mui:master Feb 1, 2022
wladimirguerra pushed a commit to wladimirguerra/material-ui that referenced this pull request Feb 2, 2022
@oliviertassinari oliviertassinari changed the title [Fab] supporting other colors [Fab] Add support for the default theme colors Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Fab The React component. new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fab] Floating action buttion doesn't support colors
4 participants