[Fab] There's no padding for the small variant
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
https://v4.mui.com/components/floating-action-button/#size
Expected behavior 🤔
No response
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Adjust icon size of Floating action button (fab) - Stack Overflow
The FAB padding (the space between the icon and the background circle, ... is 56dp and there is another variation that is the...
Read more >Buttons: floating action button - Material Design
A floating action button (FAB) represents the primary action of a screen. ... Updated FABs have a boxier style with smaller corner radius,...
Read more >How to create FAB buttons - Figma tutorial - Captain Design
FAB button variants: FAB, small FAB, large FAB, and Extended FAB. 1 - Create a medium size FAB button. First, let's select our...
Read more >FloatingActionButton class - material library - Dart API
... to disable a floating action button as there is no indication to the user that the button is disabled. ... class FabExample...
Read more >Button API - Material UI - MUI
Rule name Global class Description
root.MuiButton‑root Styles applied to the root element.
fullWidth.MuiButton‑fullWidth Styles applied to the root element if fullWidth= .
endIcon.MuiButton‑endIcon Styles applied to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jharwinbarrozo Hey, just recapping the resolution: we should tackle this on the component level to have it fixed out-of-the-box but that would be a breaking change (not the moment for having it right now) - therefore we won’t do it soon.
However, you could do the fix yourself on your theme level as explained in https://github.com/mui/material-ui/issues/31381#issuecomment-1062642494! Thanks for letting us know, we’ll come back to this once v6 starts!
If this issue is about no
padding
, I think we can close it because the padding is there:https://mui.com/components/floating-action-button/#main-content
If it is about unsymmetrical spacing with icon, I still think that it is not worth changing it right now because people can adjust it with theme API.