Skip to content

Commit

Permalink
Add aria-selected to ActionList-item for Autocomplete (#2176)
Browse files Browse the repository at this point in the history
* add aria-selected for autocomplete

* Create tricky-mangos-nail.md

* Stylelint auto-fixes

* stylelint

Co-authored-by: Actions Auto Build <actions@github.com>
  • Loading branch information
langermank and actions-user committed Jul 28, 2022
1 parent 8016e3c commit d8c218a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tricky-mangos-nail.md
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add `aria-selected` to ActionList-item for Autocomplete
3 changes: 2 additions & 1 deletion src/actionlist/action-list-item.scss
Expand Up @@ -115,7 +115,8 @@

// active state [aria-current]

&.ActionList-item--navActive {
&.ActionList-item--navActive,
&[aria-selected='true'] {
&:not(.ActionList-item--subItem) {
.ActionList-item-label {
font-weight: $font-weight-bold;
Expand Down

0 comments on commit d8c218a

Please sign in to comment.