Skip to content

Commit

Permalink
Preserve roving tab index
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jun 27, 2023
1 parent 790f48f commit 6240e40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/edit-site/src/components/page-library/grid-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export default function GridItem( { categoryId, composite, icon, item } ) {
<Button
variant="link"
onClick={ onClick }
// Required for the grid's roving tab index system.
// See https://github.com/WordPress/gutenberg/pull/51898#discussion_r1243399243.
tabIndex="-1"
>
{ item.title }
</Button>
Expand Down

0 comments on commit 6240e40

Please sign in to comment.