Skip to content

Commit

Permalink
Fix inserter pattern pagination focus loss (#60620)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored Apr 11, 2024
1 parent 873c1c8 commit 137c6c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default function Pagination( {
onClick={ () => changePage( 1 ) }
disabled={ currentPage === 1 }
aria-label={ __( 'First page' ) }
__experimentalIsFocusable
>
<span>«</span>
</Button>
Expand All @@ -53,6 +54,7 @@ export default function Pagination( {
onClick={ () => changePage( currentPage - 1 ) }
disabled={ currentPage === 1 }
aria-label={ __( 'Previous page' ) }
__experimentalIsFocusable
>
<span></span>
</Button>
Expand All @@ -75,6 +77,7 @@ export default function Pagination( {
onClick={ () => changePage( currentPage + 1 ) }
disabled={ currentPage === numPages }
aria-label={ __( 'Next page' ) }
__experimentalIsFocusable
>
<span></span>
</Button>
Expand All @@ -84,6 +87,7 @@ export default function Pagination( {
disabled={ currentPage === numPages }
aria-label={ __( 'Last page' ) }
size="default"
__experimentalIsFocusable
>
<span>»</span>
</Button>
Expand Down

1 comment on commit 137c6c4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 137c6c4.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8640523307
📝 Reported issues:

Please sign in to comment.