Skip to content

Commit

Permalink
Fix missing highlight of items on keyboard navigation in dropdown whe…
Browse files Browse the repository at this point in the history
…n using popover (#3066)
  • Loading branch information
mark-drastrup authored May 23, 2023
1 parent 5b15832 commit 813bad8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/designsystem/item/src/item.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@
--min-height: #{utils.$dropdown-item-height};
}

// Intented for use with keyboard navigation in <kirby-dropdown>
:host-context(kirby-dropdown .focused) ion-item {
// Intented for use with keyboard navigation in <kirby-dropdown> & <kirby-popover>
:host-context(kirby-dropdown .focused) ion-item,
:host-context(kirby-popover .focused) ion-item {
--background: #{interaction-state.get-state-color('white', 'xxxs')};
}

Expand Down

0 comments on commit 813bad8

Please sign in to comment.