Skip to content

Commit 2ccb82d

Browse files
authored
fix: button slots spacing (#33917)
1 parent 5d23cf8 commit 2ccb82d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Fixed button start and end slots inline spacing.",
4+
"packageName": "@fluentui/web-components",
5+
"email": "601470+mlijanto@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

packages/web-components/src/button/button.styles.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,12 @@ export const baseButtonStyles = css`
140140
fill: currentColor;
141141
}
142142
143-
:is([slot='start'], ::slotted([slot='start'])) {
143+
::slotted([slot='start']) {
144144
margin-inline-end: var(--icon-spacing);
145145
}
146146
147-
:is([slot='end'], ::slotted([slot='end'])) {
147+
::slotted([slot='end']) {
148148
flex-shrink: 0;
149-
}
150-
151-
:host(:not(${iconOnlyState})) :is([slot='end'], :host(:not(${iconOnlyState}))::slotted([slot='end'])) {
152149
margin-inline-start: var(--icon-spacing);
153150
}
154151

0 commit comments

Comments
 (0)