Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix checkbox styling in 2020 and 2017 themes by setting input font size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Apr 7, 2021
1 parent b14eaa1 commit b75fc4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion assets/js/base/components/checkbox-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
position: relative;

.wc-block-components-checkbox__input[type="checkbox"] {
font-size: 1em;
appearance: none;
border: 2px solid $input-border-gray;
border-radius: 2px;
Expand All @@ -24,6 +25,11 @@
border-color: $input-border-gray;
}

&::before,
&::after {
content: "";
}

&:not(:checked) + .wc-block-components-checkbox__mark {
display: none;
}
Expand Down Expand Up @@ -75,7 +81,8 @@
}

.wc-block-components-checkbox__input[type="checkbox"]:checked,
.has-dark-controls .wc-block-components-checkbox__input[type="checkbox"]:checked {
.has-dark-controls
.wc-block-components-checkbox__input[type="checkbox"]:checked {
background-color: #fff;
border-color: var(--form--border-color);
}
Expand Down

0 comments on commit b75fc4d

Please sign in to comment.