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

Visual indicator missing from <figcaption> link on home page when it receives focus #150

Closed
biljanap opened this issue Nov 6, 2013 · 4 comments

Comments

@biljanap
Copy link

biljanap commented Nov 6, 2013

This link is keyboard accessible but it does not have visual indicator to indicate that it received focus. This would fail Guideline 2.4.7 Focus Visible: “Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible” (http://www.w3.org/TR/WCAG20/#navigation-mechanisms).
Without visible indicators, keyboard users can’t know if an element on the page received the focus and they can’t interact with that element. Keyboard focus indicator is dotted border that we see around links and form elements when we tab to them.

@masterbee
Copy link
Member

@biljanap , can you please re-test since there has been various improvements to the CSS and wanted to ensure this is still an issue.

@biljanap
Copy link
Author

The issue is still there. I think that visual indicator (dotted border) is there but its color blends with background color.
You could do something like this to make it visible:

.jumbotron a:hover, .jumbotron a:active, .jumbotron a:focus {
border: 1px dotted #CCCCCC;
}

I would also add border for normal link state so the link would not shift for 1px (the width of the border) when it receives focus. #182842 seems to be background color.
.jumbotron a {
border: 1px dotted #182842;
}

@pjackson28
Copy link
Member

Normally the browser would take care of ensuring contrast but it looks like Bootstrap is overriding this with:

a:focus {
outline: thin dotted #333333;
outline-offset: -2px;
}

This disables the browser's default contrast handling and is why we are having issues here. This should be fixed in Bootstrap by them not touching the outline colour or style for a:focus. This presents a WCAG 2.0 focus indicator issue which should be fixed directly in Bootstrap.

@masterbee
Copy link
Member

Bootstrap merged fixed as well twbs/bootstrap#11551 - So handled upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants