Skip to content

Commit

Permalink
fix: Breadcrumb dropdown items have same color on mouse or keyboard i…
Browse files Browse the repository at this point in the history
…nteraction (#3288)

Co-authored-by: Johannes Weber <[email protected]>
  • Loading branch information
johannes-weber and Johannes Weber authored Feb 13, 2025
1 parent 2966baa commit e389b28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/button-dropdown/item-element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function MenuItem({ item, disabled, highlighted, linkStyle }: MenuItemProps) {
styles['menu-item'],
analyticsLabels['menu-item'],
linkStyle && styles['link-style'],
linkStyle && highlighted && styles['link-style-highlighted'],
isCurrentBreadcrumb && styles['current-breadcrumb']
),
'aria-current': isCurrentBreadcrumb,
Expand Down
4 changes: 4 additions & 0 deletions src/button-dropdown/item-element/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
font-weight: styles.$font-weight-bold;
text-decoration: none;
}

&.link-style-highlighted {
color: awsui.$color-text-link-hover;
}
}

&:focus {
Expand Down

0 comments on commit e389b28

Please sign in to comment.