Popups default focus on button - best practice
Posted 2yrs agoMicha60 Full stack 5 Comments
Do we need to auto focus on any one of the buttons inside a popup? Since, some users prefer keyboard to interact with the application. For example: Confirmation popups in destructive actions like Delete? Confirmation popup Any suggestion is really helpful. Thanks in advance.
Comments
-
Mekhi Graham
0 up votes 0 Down votes -
Mekhi Graham
0 up votes 0 Down votesSet comments
-
Mekhi Graham
0 up votes 0 Down votesUpdate on this
-
Martins
1 up vote 0 Down votesIn UI Design you have 3 modes of actions: If you designing pop-up for destructive action, the order of buttons and their priority differs in relation to systems and design approaches. In the screens below: 1. The priority of action 2. Example of good practise enter image description here enter image description here
-
mailtoloco
2 up votes 0 Down votesShort answer: yes. Which element, though depends on the content. Per w3.org: If a dialog contains the final step in a process that is not easily reversible, such as deleting data or completing a financial transaction, it may be advisable to set focus on the least destructive action, especially if undoing the action is difficult or impossible. The Alert Dialog Pattern is often employed in such circumstances.
Unleash Your Voice, Amplify Accessibility
Empower Your Voice, Share Your Topics on Accessibility, and Ignite a Change in web content
Nice peace