Skip to content

Commit

Permalink
[EuiContextMenuItem] Fix underline styling on hover for non-links (#7474
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cee-chen authored Jan 23, 2024
1 parent 435b0e4 commit 52f5001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/upcoming/7474.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiContextMenu`'s panel titles & items to not show underlines on hover for non-interactive elements
2 changes: 1 addition & 1 deletion src/components/context_menu/context_menu_item.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const euiContextMenuItemStyles = (euiThemeContext: UseEuiTheme) => {
color: ${euiTheme.colors.text};
outline-offset: -${euiTheme.focus.width};
&:not(:disabled) {
&:where(a, button):not(:disabled) {
&:hover,
&:focus {
text-decoration: underline;
Expand Down

0 comments on commit 52f5001

Please sign in to comment.