Skip to content

Commit 7fbc4d8

Browse files
committed
fix(SplitButton): prevent menu position shift on close
1 parent 3d75ca2 commit 7fbc4d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/components/SplitButton/SplitButton.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
transform: scale(0.95);
2323
}
2424

25+
/* Disable press-scale on wrapper while split menu is open
26+
to avoid layout shift on close */
27+
.button:has(button[aria-expanded="true"]) {
28+
transform: none;
29+
}
30+
2531
.disabled {
2632
cursor: not-allowed;
2733
pointer-events: none;

0 commit comments

Comments
 (0)