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 Jul 5, 2023
1 parent e085f15 commit 095d64a
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 @@ -121,7 +121,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 095d64a

Please sign in to comment.