sl-menu-item hover states #1185
Answered
by
claviska
Jaylyn-Barbee
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Feb 9, 2023
Replies: 1 comment 1 reply
-
There are two states, hover and focus. Try this: /* Hover state */
sl-menu-item::part(base):hover {
background: green;
color: white;
}
/* Focus state */
sl-menu-item:focus-within::part(base) {
background: tomato;
color: white;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jaylyn-Barbee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two states, hover and focus. Try this: