Skip to content

Commit

Permalink
Switch Example Using HTML Checkbox: Fix editorial error in accessibil…
Browse files Browse the repository at this point in the history
…ity features documentation (pull #2750)

Inaccurate text:
When an element loses focus, its border changes from two pixels to two and padding is increased by two pixels. 

Corrected text:
When an element loses focus, its border changes from two pixels to zero and padding is increased by two pixels.
  • Loading branch information
Camwyn authored Jul 24, 2023
1 parent 7723165 commit d6cf9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/patterns/switch/examples/switch-checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h2>Accessibility Features</h2>
Note: Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused an other elements.
Instead of using transparency, the focused element has a thicker border and less padding.
When an element receives focus, its border changes from zero to two pixels and padding is reduced by two pixels.
When an element loses focus, its border changes from two pixels to two and padding is increased by two pixels.
When an element loses focus, its border changes from two pixels to zero and padding is increased by two pixels.
</li>
</ul>
</li>
Expand Down

0 comments on commit d6cf9d8

Please sign in to comment.