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

[docs] Replace negative actions from fab examples #17926

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

nuragic
Copy link
Contributor

@nuragic nuragic commented Oct 18, 2019

Hello!

Per spec, negative actions such as remove or delete cannot appear in FAB:

https://material.io/components/buttons-floating-action-button/#behavior

Use FABs for primary, positive actions.

Avoid using a FAB for minor or destructive actions, such as:

  • Archive or trash

Thanks!

@mui-pr-bot
Copy link

mui-pr-bot commented Oct 18, 2019

No bundle size changes comparing 0a6d9a5...087becb

Generated by 🚫 dangerJS against 087becb

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Oct 18, 2019
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 can find the following mention: Use FABs for primary, positive actions..
I think that we can move forward with the changes. However, could you update the TypeScript verison of the demos? (yarn docs:typescript:formatted to generate the JavaScript version). Thanks

@nuragic
Copy link
Contributor Author

nuragic commented Oct 18, 2019

Sure, will do it in a few minutes, thanks!

@nuragic
Copy link
Contributor Author

nuragic commented Oct 18, 2019

Done!

@joshwooding joshwooding merged commit 702cde3 into mui:master Oct 18, 2019
@joshwooding
Copy link
Member

@nuragic Thanks, it's a great first contribution to Material-UI 🎉

@nuragic
Copy link
Contributor Author

nuragic commented Oct 21, 2019

Oh well, thank you! 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants