Skip to content

Commit d8c218a

Browse files
Add aria-selected to ActionList-item for Autocomplete (#2176)
* add aria-selected for autocomplete * Create tricky-mangos-nail.md * Stylelint auto-fixes * stylelint Co-authored-by: Actions Auto Build <[email protected]>
1 parent 8016e3c commit d8c218a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/tricky-mangos-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Add `aria-selected` to ActionList-item for Autocomplete

src/actionlist/action-list-item.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115

116116
// active state [aria-current]
117117

118-
&.ActionList-item--navActive {
118+
&.ActionList-item--navActive,
119+
&[aria-selected='true'] {
119120
&:not(.ActionList-item--subItem) {
120121
.ActionList-item-label {
121122
font-weight: $font-weight-bold;

0 commit comments

Comments
 (0)