Skip to content

Commit

Permalink
Fix incorrect aria-describedby attributes for theme patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jul 4, 2023
1 parent a3d81f6 commit a05b86f
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 a05b86f

Please sign in to comment.