Skip to content

Commit 1ad6d5b

Browse files
authored
[css-forms-1] Use visibility for checkmark (#13555)
1 parent 81021f3 commit 1ad6d5b

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

css-forms-1/Overview.bs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -886,16 +886,21 @@ input[type=radio] {
886886
justify-content: center;
887887
}
888888

889-
input[type=radio] {
890-
border-radius: 50%;
889+
input[type=checkbox]:not([switch])::checkmark,
890+
input[type=radio]::checkmark {
891+
content: '\2713' / '';
891892
}
892893
893-
input[type=checkbox]:not([switch]):checked::checkmark {
894-
content: '\2713' / '';
894+
input[type=checkbox]:not([switch], :checked)::checkmark {
895+
input[type=radio]:not(:checked)::checkmark {
896+
visibility: hidden;
897+
}
898+
899+
input[type=radio] {
900+
border-radius: 50%;
895901
}
896902
897903
input[type=radio]:checked::checkmark {
898-
content: '';
899904
background-color: currentColor;
900905
display: inline-block;
901906
border-radius: inherit;

0 commit comments

Comments
 (0)