Skip to content

Commit

Permalink
fix: radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed May 26, 2020
1 parent 9c6eb14 commit 3a3dc34
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/assets/styles/components/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,6 @@ input[type="checkbox"] + label
font-weight: $font-weight-normal;
}

input[type="radio"]::before {
border-radius: 100%;
}

input[type="radio"]::before,
input[type="checkbox"]::before,
[role="checkbox"]::before {
Expand All @@ -282,15 +278,21 @@ input[type="checkbox"]::before,
transition: border 0.1s ease-out, background-color 0.1s ease-out, box-shadow 0.1s ease-out;
width: rem(18);

&:focus {
outline: none;
}

@media (prefers-reduced-motion: reduce) {
transition: none;
}
}

input[type="radio"]::before {
border-radius: 100%;
}

input[type="radio"]::before:focus,
input[type="checkbox"]::before:focus,
[role="checkbox"]::before:focus {
outline: none;
}

input[type="radio"]:disabled + label,
input[type="checkbox"]:disabled + label {
color: var(--text-value-color-disabled);
Expand Down

0 comments on commit 3a3dc34

Please sign in to comment.