Skip to content

Commit

Permalink
Button role: add aria-pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Dec 5, 2023
1 parent 5621413 commit 4d0011d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dataviews/src/view-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function ViewList( {
<div
role="button"
tabIndex={ 0 }
aria-pressed={ selection.includes( item.id ) }
onKeyDown={ onEnter( item ) }
className={ classNames(
'dataviews-list-view__item',
Expand Down

0 comments on commit 4d0011d

Please sign in to comment.