Skip to content

Commit f575c59

Browse files
committed
fix focus
1 parent d6f0554 commit f575c59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pg/menuItem/menuItem.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
content: var(--pg-menu-item-disabled-check, url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M 17.5,10.2501L 10.5,17.25L 6.5,13.25L 7.9,11.8L 10.5,14.4L 16.0857,8.8L 17.5,10.25Z' fill='rgb(69, 60, 79, 0.5)' /></svg>"));
5050
}
5151

52-
[part=label]:focus {
52+
[part=label]:focus-visible {
5353
position: relative;
5454
}
5555

56-
[part=label]:focus::after {
56+
[part=label]:focus-visible::after {
5757
pointer-events: none;
5858
content: '';
5959
position: absolute;
@@ -65,6 +65,6 @@
6565
box-shadow: 0 0 0 3px var(--pg-focus-color, rgb(79, 143, 249, 0.5));
6666
}
6767

68-
[part=label]:focus:not(:hover)::after {
68+
[part=label]:focus-visible:not(:hover)::after {
6969
background: var(--pg-focus-background-color, rgb(79, 143, 249, 0.1));
7070
}

0 commit comments

Comments
 (0)