Skip to content

Commit

Permalink
Apply new checkbox CSS to radio buttons and fix border radius (#8835)
Browse files Browse the repository at this point in the history
* Apply new checkbox CSS to radio buttons w/ border-radius fix; fixes #8833

* Use $round-radius instead of 50%
  • Loading branch information
chrisvanpatten authored and jasmussen committed Aug 14, 2018
1 parent 3767009 commit 1759c92
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions edit-post/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ body.gutenberg-editor-page {
}
}

input[type="checkbox"] {
input[type="checkbox"],
input[type="radio"] {
border: $border-width + 1 solid $dark-gray-300;
border-radius: $radius-round-rectangle / 2;
margin-right: 12px;
transition: none;

Expand All @@ -194,12 +194,25 @@ body.gutenberg-editor-page {
&:checked:focus {
box-shadow: 0 0 0 2px $dark-gray-500;
}
}

input[type="checkbox"] {
border-radius: $radius-round-rectangle / 2;

&::before {
margin: -4px 0 0 -5px;
color: $white;
}
}

input[type="radio"] {
border-radius: $radius-round;

&::before {
margin: 3px 0 0 3px;
background-color: $white;
}
}
}

// Placeholder colors
Expand Down

0 comments on commit 1759c92

Please sign in to comment.