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
  • #37158
Closed
Open
Issue created Sep 15, 2022 by Administrator@rootContributor2 of 2 checklist items completed2/2 checklist items

Add Modal's keyboard escape and focus options to Toasts

Created by: whicks1

Prerequisites

  • I have searched for duplicate or closed feature requests
  • I have read the contributing guidelines

Proposal

Add configuration options to Toast components that allow for keyboard escapes and element focus using the same methods as modals.

Motivation and context

Modals contain configuration options that allows for toggling off/on the ability for the user to keyboard esc to close and grant focus to the modal-window on init. Toasts can be used for similar, but less intrusive purposes in the UI, and allow to disable the autohide feature, but don't currently allow for keyboard escape options or focus, though they are perfectly capable of housing user inputs, meaning they are partially obscured from non-mouse users. Adding the same option gives both the developer and the user greater control over visibility of toasts.

Assignee
Assign to
Time tracking