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
  • #24838
Closed
Open
Issue created Nov 20, 2017 by Administrator@rootContributor

Pagination active page-link lacks noticeable focus styling in Firefox

Created by: tmorehouse

  • Operating system and version : Any
  • Browser and version: Firefox (and maybe others)
  • Reduced test case: https://codepen.io/tmorehouse/pen/MOQXyd

The current CSS for pagination .page-item.active .page-link does not include any noticeable focus styling when using Firefox, which makes it difficult for keyboard only users to know if the active link is focused or not.

Tab through the page links in the codepen to see the issue (and one possible solution) using Firefox

I've used the following workaround CSS to provide focus styling for the active page-link:

.pagination .page-item.active .page-link:focus {
    box-shadow: 0 0 0 3px rgba(0,123,255,.5);
    z-index: 2;
}

Currently the active page link looks like this with focused and not focused (the change in outline is negligible): image

With the proposed focus styling it looks as follows (which uses similar styling as the primary button focus styling): image

Another quick workaround is to place the class .btn-primary (without the .btn class) on the active page-link (the <a> tag), which produces the same effect when focused.

Assignee
Assign to
Time tracking