Skip to content

Commit 1a3d024

Browse files
web-padawanugur-vaadin
authored andcommitted
refactor: only show submenu indicator if there are child items (#10472)
1 parent 5221801 commit 1a3d024

35 files changed

+3
-4
lines changed

packages/context-menu/src/styles/vaadin-context-menu-item-base-styles.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { css } from 'lit';
88
import { itemStyles } from '@vaadin/item/src/styles/vaadin-item-base-styles.js';
99

1010
const menuItemStyles = css`
11-
:host::after {
11+
:host([aria-haspopup='true'])::after {
1212
background: var(--vaadin-text-color-secondary);
1313
content: '';
1414
display: block;
@@ -23,9 +23,8 @@ const menuItemStyles = css`
2323
rotate: 90deg;
2424
}
2525
26-
/* TODO would be nice to only reserve the space for these if
27-
one or mote items in the list is checkable or has child items */
28-
:host([aria-haspopup='true'])::after,
26+
/* TODO would be nice to only reserve the space if
27+
one or mote items in the list is checkable */
2928
:host([menu-item-checked]) [part='checkmark'] {
3029
visibility: visible;
3130
}
-8 Bytes
Loading
-4 Bytes
Loading
3 Bytes
Loading
-26 Bytes
Loading
-74 Bytes
Loading
-66 Bytes
Loading
-70 Bytes
Loading
5 Bytes
Loading
-58 Bytes
Loading

0 commit comments

Comments
 (0)