Skip to content

Commit 9511061

Browse files
authored
Enhance checkbox state description with outline detail
#40960
1 parent 6948f64 commit 9511061

File tree

1 file changed

+2
-1
lines changed
  • files/en-us/web/api/customstateset

1 file changed

+2
-1
lines changed

files/en-us/web/api/customstateset/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,13 @@ The second block follows `::part()` with `:state()`, in order to match `checkbox
339339
```css
340340
question-box::part(checkbox):state(checked) {
341341
color: green;
342+
outline: dashed 1px green;
342343
}
343344
```
344345

345346
#### Result
346347

347-
Click either of the checkboxes to see the color change from `red` to `green` when the `checked` state toggles.
348+
Click either of the checkboxes to see the color change from `red` to `green` with an outline when the `checked` state toggles.
348349

349350
{{EmbedLiveSample("Question box", "100%", 100)}}
350351

0 commit comments

Comments
 (0)