Skip to content

Commit ccbe967

Browse files
authored
fix: don't use negative margin on a single-button menu-bar (#10550)
1 parent b6b638b commit ccbe967

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

packages/menu-bar/src/styles/vaadin-menu-bar-base-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const menuBarStyles = css`
2828
--_rad-button: var(--vaadin-button-border-radius, var(--vaadin-radius-m));
2929
}
3030
31-
::slotted(vaadin-menu-bar-button:not(:first-of-type)) {
31+
:host(:not([has-single-button])) ::slotted(vaadin-menu-bar-button:not(:first-of-type)) {
3232
margin-inline-start: min(var(--_bw) * -1 + var(--_gap) * 1000, 0px);
3333
}
3434
3 Bytes
Loading
1 Byte
Loading

0 commit comments

Comments
 (0)