consider input type radio too

This commit is contained in:
Andreas
2024-08-28 22:54:13 +02:00
committed by Oskar Wickström
parent d97979f0c9
commit 30326d1be4
2 changed files with 12 additions and 2 deletions

View File

@@ -311,7 +311,8 @@ input, button, textarea {
-webkit-appearance: none;
}
input[type=checkbox] {
input[type=checkbox],
input[type=radio] {
display: inline-grid;
place-content: center;
vertical-align: top;
@@ -319,7 +320,8 @@ input[type=checkbox] {
height: var(--line-height);
cursor: pointer;
}
input[type=checkbox]:checked:before {
input[type=checkbox]:checked:before,
input[type=radio]:checked:before {
content: "";
width: 1ch;
height: calc(var(--line-height) / 2);