Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Aug 26, 2020
Merged

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

merged 3 commits into from
Aug 26, 2020

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