Skip to content

Commit

Permalink
fix(component/listbox): standardise focus status (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiloyi committed Jul 17, 2024
1 parent 6d71e58 commit b5747ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/styles/components/_c.listbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
position: relative;

&:not(#{$selector-empty}):not(.is-disabled):hover,
&:has(.mc-listbox__input:focus) {
&:has(.mc-listbox__input:focus),
&:has(.mc-listbox__label:focus) {
background-color: $color-listbox-tile-hover-background;
box-shadow: inset 9px 0 0 -7px $color-listbox-tile-shadow;
}
Expand Down Expand Up @@ -88,6 +89,7 @@
color: currentColor;
cursor: pointer;
white-space: nowrap;
outline: transparent;

@at-root button#{&} {
background: none;
Expand Down

0 comments on commit b5747ee

Please sign in to comment.