Skip to content

Commit ebfcec7

Browse files
authored
switch from using :focus to :focus-visible in the example on outlines (#12556)
1 parent af082f7 commit ebfcec7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-ui-4/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,11 @@ Outline properties</h2>
393393
(e.g. for entering text or selecting a button).
394394

395395
<div class="example">
396-
For example, to draw a thick black line around an element when it has the focus,
397-
and a thick red line when it is active,
398-
the following rules can be used:
396+
For example, to draw a thick black line around elements in the
397+
'':focus-visible'' state, and a thick red line when it is in the
398+
'':active'' state, the following rules can be used:
399399
<pre><code class="lang-css">
400-
:focus { outline: thick solid black }
400+
:focus-visible { outline: thick solid black }
401401
:active { outline: thick solid red }
402402
</code></pre>
403403
</div>

0 commit comments

Comments
 (0)