Skip to content

Commit

Permalink
fix(Menu): reset menu item hover and defer to popover (#1653)
Browse files Browse the repository at this point in the history
- reset any color set directly on the menu item line
- set the state color to our text/neutral-default color
  • Loading branch information
booc0mtaco authored Jun 6, 2023
1 parent 94a11d0 commit f329e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Menu/Menu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@
text-decoration: none;
color: inherit;
}

/* Unset the hover on the menu item, as this is handled by the PopoverListItem */
.menu__item:hover {
color: unset;
}
1 change: 1 addition & 0 deletions src/components/PopoverListItem/PopoverListItem.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
}

.popover-list-item--active {
color: var(--eds-theme-color-text-neutral-default);
background-color: var(--eds-theme-color-background-neutral-default-hover);
}

Expand Down

0 comments on commit f329e4d

Please sign in to comment.