Skip to content

Commit

Permalink
Fix incorrect aria-describedby attributes for theme patterns (#52263)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored and tellthemachines committed Jul 7, 2023
1 parent cd5be56 commit 4795e31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/edit-site/src/components/page-patterns/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
aria-label={ item.title }
aria-describedby={
ariaDescriptions.length
? ariaDescriptions.join( ' ' )
? ariaDescriptions
.map(
( _, index ) =>
`${ descriptionId }-${ index }`
)
.join( ' ' )
: undefined
}
>
Expand Down

0 comments on commit 4795e31

Please sign in to comment.