Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #22009
Closed
Open
Issue created Feb 16, 2017 by Administrator@rootContributor

Pagination: improve accessibility

Created by: thbt

There is a few issue with the current implementation of accessibility for the pagination component

  • When working with icons, you use both aria-label and .sr-only. It makes sense to use aria-label on a link, since it is standard and is supported by most screen readers, so we don't really need the .sr-only span.
  • Using a screen reader, disabled pagination links are not announced as "disabled". They can't be focused but the screen reader can still browse them.
    • adding aria-disabled="true" to the link in the example would fix this issue.
  • You suggest adding <span class="sr-only">(current)</span> for the currently visited link, but some screen readers (NVDA) will read it wrong when reading the pagination backwards (from last to first): consider 2 is selected, it will read 3 - current - 2 - 1.
    • Using aria-label="Page 2 (current)" or aria-current="true" would fix this issue.

Let me know what you think.

Assignee
Assign to
Time tracking