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 support #86

Closed
wants to merge 2 commits into from
Closed

Accessibility support #86

wants to merge 2 commits into from

Conversation

Maskim
Copy link

@Maskim Maskim commented May 4, 2018

I try to add accessibility support on your plugin.

I hope it will do the job :)
I used the link I paste in #85 ticket

@TixieSalander
Copy link
Contributor

TixieSalander commented May 22, 2018

Hello, thanks @Maskim for this PR!
I'll do my best to review and merge it. A11y support is definitively something we care and want to implement in TingleJS.

Copy link

@svict4 svict4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a user tabbing through (especially with a screenreader) should loop on the modal until it is dismissed

Copy link
Contributor

@TixieSalander TixieSalander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for this PR @Maskim
The tabbing navigation is working.👌

@@ -6,33 +6,30 @@
box-sizing: border-box;
}

.tingle-modal *:focus {
outline: 1px solid black;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep the browser's default focus ring instead of a 1px black ring. It's not very noticeable, especially around the close button.

Maybe we could make a nicer focus ring with box-shadow, but it's a bit unsafe knowing that the focusable elements in the modal's content may have box-shadow already.

I would like to have the @robinparisi opinion on that.

}

function _handleKeyboardNav(event) {
// escape key
if (this.opts.closeMethods.indexOf('escape') !== -1 && event.which === 27 && this.isOpen()) {
this.close();
}

// tab key
if (event.which === 9 && this.isOpen()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I don't know :o

I suppose I forgot to remove this test :)

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.

4 participants