Skip to content

Commit

Permalink
fix: Datalist highlighted element (keyboard navigation) (#5182)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainseb authored Feb 14, 2024
1 parent 177994f commit dbc290d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-avocados-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-components': patch
---

fix: Datalist hightligted element (keyboard navigation)
5 changes: 2 additions & 3 deletions packages/components/src/Typeahead/Typeahead.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,12 @@ $tc-typeahead-item-description-height: 1rem !default;
display: flex;
align-items: center;
justify-content: center;

span {
padding: $padding-small $padding-smaller;
}
}


.items {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -231,7 +230,7 @@ $tc-typeahead-item-description-height: 1rem !default;

&-highlighted,
&:hover {
background-color: tokens.$coral-color-accent-background-weak;
background-color: tokens.$coral-color-accent-background-weak-hover;

&.selected {
background-color: tokens.$coral-color-accent-background-weak-active;
Expand Down

0 comments on commit dbc290d

Please sign in to comment.