Reading direction of the templates dialog leads to mistakes when choosing a template #4901
Labels
accessibility
Issue related to accessibility.
plugin:templates
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
type:task
Any other issue (refactoring, typo fix, etc).
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
In the templates plugin the selection of the template is made inside of a dialog. The dialog will close as soon as the user clicks at one of the templates. But there is a checkbox at the bottom to decide if the user wants to replace the content of the editor. As the reading direction is from top to bottom the user will first select a template and then read and (de)select the checkbox.
Unfortunately the dialog will close after selecting the template before the user will read the checkbox. This may lead to mistakes when inserting the template like the replacement of the editor content without the user wanting it.
The checkbox should either be before the template list to be in the reading direction or there should be an ok button so the dialog closes only after pressing this button.
https://codepen.io/Fynn96/pen/abwGxMx?editors=1010
Expected result
You get time to check the checkbox and decide what to to with the template.
Actual result
The dialog closes immedeately and inserts the template by replacing the whole editor content because the checkbox was seleted by default.
Other details
The text was updated successfully, but these errors were encountered: