@@ -217,6 +217,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
217
217
render ( ) {
218
218
return html `
219
219
<div id= "menu-item" aria-label = "menuitem" role= "menuitem">
220
+ <div id= "label-button-background" > </ div>
220
221
${ this . hasChildren
221
222
? html `<butto n
222
223
id= "caret-button"
@@ -231,7 +232,6 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
231
232
? this . _renderLabelAsAnchor ( )
232
233
: this . _renderLabelAsButton ( ) }
233
234
234
- <div id= "label-button-background" > </ div>
235
235
<slot id= "actions-container" name = "actions"> </ slot>
236
236
${ this . loading
237
237
? html `<uui- loader- bar id= "loader" > </ uui- loader- bar> `
@@ -266,12 +266,8 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
266
266
267
267
/** Not active, not selected, not disabled: */
268
268
: host (: not ([active ], [selected ], [disabled ], [select-mode = 'highlight' ]))
269
- # menu-item
270
- # label-button : hover
271
- ~ # label-button-background ,
272
- : host (: not ([active ], [selected ], [disabled ]))
273
- # menu-item
274
- # caret-button : hover {
269
+ # menu-item : has (# label-button : hover )
270
+ # label-button-background {
275
271
background-color : var (
276
272
--uui-menu-item-background-color-hover ,
277
273
var (--uui-color-surface-emphasis )
@@ -480,7 +476,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
480
476
background-color : transparent;
481
477
cursor : pointer;
482
478
min-height : var (--uui-size-12 );
483
- z-index : 1 ;
479
+ /* z-index: 1; */
484
480
}
485
481
486
482
# label-button {
@@ -498,7 +494,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
498
494
text-decoration : none;
499
495
color : currentColor;
500
496
min-height : var (--uui-size-12 );
501
- z-index : 1 ;
497
+ /* z-index: 1; */
502
498
font-weight : inherit;
503
499
}
504
500
0 commit comments