-
Notifications
You must be signed in to change notification settings - Fork 320
Update G195 - removal of last line of test (low contrast OK if focus ring > 2px thick) #3686
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
Open
detlevhfischer
wants to merge
21
commits into
main
Choose a base branch
from
DF-modify-test-pocedure
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5d532fe
Update G195.html
detlevhfischer 865a990
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke e776ef7
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke cc2dfb2
Update focus-appearance.html
mbgower e64ed0c
Update focus-appearance.html
mbgower 304940d
Update G195.html
mbgower b0b7ef3
Update G195.html
mbgower 9f3b663
Update G195.html
mbgower b1d77bb
Update G195.html
mbgower eba956b
Update G195.html
mbgower 3d83cf5
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke 48f360f
Update G195.html
mbgower df7cbda
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke f9e5672
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke f663ec4
Fix broken markup, remove empty lines
patrickhlauke 75a3a81
Update techniques/general/G195.html
patrickhlauke 60f4301
Added minor clarification to test steps about which SC these satisfy
patrickhlauke e4debf2
Merge branch 'DF-modify-test-pocedure' of https://github.com/w3c/wcag…
patrickhlauke f822b75
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke 3591018
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke 7af38f3
Merge branch 'main' into DF-modify-test-pocedure
patrickhlauke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,7 +2,7 @@ | |||||
<p>Generally applicable.</p> | ||||||
</section><section id="description"><h2>Description</h2> | ||||||
<p>The objective of this technique is enhance the focus indicator in the browser, by creating a visible one in the content. The default focus indicator in some browsers is a thin, dotted, black line. It can be difficult to see the line when it is around a form element which already has an outline, when the focused element is inside a table cell, when the focused element is very small, or when the background of the page is a dark color. Some browsers use a pale blue outline, which can be difficult to see on some backgrounds.</p> | ||||||
<p>In this technique, when the user places focus on an element using the keyboard, the application makes that focus more visible, using a combination of a highly contrasting color, a thick line, and other visual indicators such as a glow.</p> | ||||||
<p>In this technique, when the user places focus on an element using the keyboard, the application makes that focus more visible, using a combination of a highly contrasting color, a thick line, and optionally other visual indicators such as a glow.</p> | ||||||
</section> | ||||||
<section id="examples"> | ||||||
<h2>Examples</h2> | ||||||
|
@@ -19,23 +19,25 @@ <h3>Form Elements</h3> | |||||
<section class="example"> | ||||||
<h3>Menus</h3> | ||||||
|
||||||
<p>A Web page includes an interactive menu with sub-menus. A user can move focus in the menu using the arrow keys. As focus moves, the currently focused menu item changes its background to a different color, which has a 3:1 contrast ratio with the surrounding items and a 4.5:1 contrast ratio with its own text.</p> | ||||||
<p>A Web page includes an interactive menu with sub-menus. A user can move focus in the menu using the arrow keys. As focus moves, the currently focused menu item changes its background to a different color, which has a 3:1 contrast ratio with the surrounding menu items and a 4.5:1 contrast ratio with its own text.</p> | ||||||
|
||||||
</section> | ||||||
</section><section id="tests"><h2>Tests</h2> | ||||||
<section class="procedure"><h3>Procedure</h3> | ||||||
<p>For each user interface component on the page that should receive keyboard focus:</p> | ||||||
<ol> | ||||||
<li>Navigate to the component and check that it has a visible focus indicator.</li> | ||||||
<li>Check that the focus indicator area is at least the size of a 1 CSS px border around the component.</li> | ||||||
<li>If the focus indicator area is not at least equal to the area of a 1 CSS pixel border, check that it has an area of at least 4 CSS pixels along the shortest side of the component.</li> | ||||||
<li>Check that the change of contrast of the indicator between focused and unfocused states has a ratio of 3:1 or more for the minimum focus indicator area.</li> | ||||||
<li>If the focus indicator does not have 3:1 contrast ratio with its adjacent colors, check that it is at least 2px thick.</li> | ||||||
<li>Check that the focus indicator or its background color has been modifed by the author</li> | ||||||
<li>Navigate to the component and check that it has a visible focus indicator that contrasts at least 3:1 against adjacent colors.</li> | ||||||
<li>Check that the focus indicator includes an area that meets all the following:</li> | ||||||
<ol> | ||||||
<li>is at least as large as a 2 CSS pixel thick perimeter of the unfocused component or sub-component.</li> | ||||||
<li>has a contrast ratio of at least 3:1 between the same pixels in the focused and unfocused states.</li> | ||||||
</ol> | ||||||
</ol> | ||||||
</section> | ||||||
<section class="results"><h3>Expected Results</h3> | ||||||
<ul> | ||||||
<li>Checks #2, #4, and #5 are true.</li> | ||||||
<li>If Check #1 is true, all other checks are also true.</li> | ||||||
|
<li>If Check #1 is true, all other checks are also true.</li> | |
<li>If Check #1 is true, all other checks must also be true.</li> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.