Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/three-breads-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@solidmaterial/material': patch
---

Remove extra padding on left side of FAB with no icon
5 changes: 4 additions & 1 deletion packages/material/src/components/fab/MaterialFab.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
transition-timing-function: var(--md-sys-motion-spring-effects-fast);

& > span {
padding-inline-start: var(--md-comp-fab-gap);
padding-inline-end: var(--md-comp-fab-padding);
}

Expand All @@ -143,6 +142,10 @@
}
}

&:has(md-icon) .label > span {
padding-inline-start: var(--md-comp-fab-gap);
}

/**
* Make sure the icon of an icon-only FAB stays centered while the
* size of FAB changes during an animation. This is needed when
Expand Down
Loading