Skip to content

Commit dafee0b

Browse files
authored
[css-forms-1] Fix radio button checkmark styles (#13566)
The original styles always set a checkmark symbol for content, but this leads to it rendering for checked radios too.
1 parent 1ad6d5b commit dafee0b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

css-forms-1/Overview.bs

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

889-
input[type=checkbox]:not([switch])::checkmark,
890-
input[type=radio]::checkmark {
889+
input[type=checkbox]:not([switch])::checkmark {
891890
content: '\2713' / '';
892891
}
893892
893+
input[type=radio]::checkmark {
894+
content: '';
895+
}
896+
894897
input[type=checkbox]:not([switch], :checked)::checkmark {
895898
input[type=radio]:not(:checked)::checkmark {
896899
visibility: hidden;

0 commit comments

Comments
 (0)