Skip to content

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 nuragic force-pushed the remove-negative-actions-fab branch from 9c3726e to 087becb Compare October 18, 2019 11:21
@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