Skip to content

Accessibility: Fixes for "insert code snippet" view in macro pickers#8711

Merged
nul800sebastiaan merged 3 commits intoumbraco:v8/contribfrom
BatJan:feature/accessibility-fixes-for-insert-code-snippet
Aug 26, 2020
Merged

Accessibility: Fixes for "insert code snippet" view in macro pickers#8711
nul800sebastiaan merged 3 commits intoumbraco:v8/contribfrom
BatJan:feature/accessibility-fixes-for-insert-code-snippet

Conversation

@BatJan
Copy link
Contributor

@BatJan BatJan commented Aug 22, 2020

Prerequisites

  • I have added steps to test this contribution in the description below

Description

During the work on #8522 I discovered that this view did not contain proper <button> elements, for the different insert options, which means the focus lock won't be able to pickup the first focusable element properly and puts the focus on the "close" button making one unable to tab to the options inside the overlay. This is fixed in this PR with the added buttons. While I had the view opened I fixed some HTML semantics as well adding h2 for the title and wrapped the description in <p> - I also added proper fallback texts in case the dictionary keys have not been translated for a certain language.

The view visually appears the same as before these changes - I decided to make this an independent PR in an attempt to keep the #8522 as clean as possible 👍

@BatJan BatJan changed the title Feature/accessibility fixes for insert code snippet Accessibility: Fixes for "insert code snippet" view in macro pickers Aug 22, 2020
@nul800sebastiaan nul800sebastiaan merged commit 52e40d4 into umbraco:v8/contrib Aug 26, 2020
@nul800sebastiaan
Copy link
Member

Sweet, looks good @BatJan - great job! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants