Skip to content

Commit a99f147

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
Fix devtools-menu item highlight being cropped
Screenshot: https://imgur.com/a/pLzaAxX Bug:none Change-Id: I18e705b3fea7581c8d10164aad912f5e80e2b713 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6308804 Auto-Submit: Kateryna Prokopenko <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
1 parent 103e370 commit a99f147

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

front_end/ui/components/menus/menuItem.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@
4848
opacity: 60%;
4949
}
5050

51-
:host(:hover:not(.prevents-close)) .menu-item,
52-
:host(:focus-visible:not(.prevents-close)) .menu-item {
53-
background: var(--sys-color-state-hover-on-subtle);
51+
:host(:hover:not(.prevents-close)) .menu-item::after,
52+
:host(:focus-visible:not(.prevents-close)) .menu-item::after {
53+
content: "";
54+
height: 100%;
55+
width: 100%;
56+
border-radius: inherit;
57+
position: absolute;
58+
top: 0;
59+
left: 0;
60+
background-color: var(--sys-color-state-hover-on-subtle);
5461
}
5562

5663
:host(:focus) {

0 commit comments

Comments
 (0)