Pagination

 

User stories

Users should be able to navigate and interact with pagination controls using only the keyboard.

  • Tab to move between buttons.
  • Enter or Space to activate a button.
  • Arrow keys for quick navigation between page numbers.

Focus Management

  • Ensure focus moves logically when navigating pages.
  • After a page change, set focus to the new active page or the top of the content.

Announce page changes for screen readers

Use live regions to announce updates

  • When the page changes, inform users without shifting their focus unexpectedly.
  • Example using aria-live="polite":

                                                        
                                                        
                                                            <div aria-live="polite">
                                                          Page 2 of 10 loaded.
                                                        </div>
                                                        
                                                            
  • Alternatively, focus on the new active page button.

Accessibility checklist

 

User stories

✅

Announce page changes for screen readers

✅