Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve focus/active
  • Loading branch information
Rich Tabor committed Mar 22, 2024
commit 6dd6122783647923e0ffb98b14b04a4b1163cb9b
7 changes: 6 additions & 1 deletion packages/components/src/autocomplete/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
text-align: left;
width: 100%;

&.is-selected {
&:focus:not(:disabled) {
@include block-toolbar-button-style__focus();
}

&.is-selected,
&:not(:disabled,[aria-disabled="true"]):active {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not necessary to include [aria-disabled="true"] in this selector. Because the Button component inside the Autocompleter never has this attribute.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sometimes it could have it?

background: $components-color-accent;
color: $white;
}
Expand Down