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
  • #12364
Closed
Open
Issue created Jan 24, 2014 by Administrator@rootContributor

On close, modals should return focus to launching element

Created by: whicks1

When a user closes a modal, nothing gets focus. This breaks keyboard/tabbed usability (possibly accessibility?). Consider a long form that a user tabs through elements, and launches modals for things like help text. Ideally the last button or element used to launch the modal would receive focus back and the user could continue from where they left off.

Test: simply tab through http://getbootstrap.com/javascript/ and use only the keyboard to launch the demo modal, escape it, then start tabbing again to see the behavior in action.

Assignee
Assign to
Time tracking