Skip to content

Commit

Permalink
V10 fix radio button styles (#1214)
Browse files Browse the repository at this point in the history
* fix radio button styles

* fine tune radio button group alignment

* approve react backstop

* approve patternlab backstop
  • Loading branch information
clairesunstudio authored Oct 16, 2020
1 parent ba3813f commit 3884e8f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions packages/assets/scss/01-atoms/_input-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,22 @@

&__label {
font-size: $fonts-medium;
line-height: 1rem;
padding-left: 1.5em;
font-weight: $fonts-light;
display: flex;
align-items: center;

&:before {
border: 2px solid;
border-radius: 50%;
content: "\2022";
display: inline-block;
content: "\25CF";
display: flex;
align-items: center;
justify-content: center;
height: .45em;
font-size: 2.5em;
line-height: calc(.45em - 11px);
margin-right: .125em;
position: absolute;
top: -.025em;
left: 0;
text-align: center;
width: .45em;
font-size: 1.25em;
margin-right: .125em;
padding: 0.5em;
overflow: hidden;
background-color: $c-white;
border-color: $c-bd-input-dark;
Expand All @@ -42,10 +40,6 @@
}

}

span {
line-height: 1.2em;
}
}


Expand Down Expand Up @@ -182,7 +176,7 @@ $control-height: 1.2rem;
//label-appearance(text-color, background-color, border-color, box-shadow, control-state, class-modifier)

@include label-appearance($c-primary, $c-white, $c-primary, '','', '');

@include label-appearance($c-primary, $c-primary-lightest, $c-primary, '', ':hover', '');

@include label-appearance($c-white, $c-primary, $c-primary, '',':checked', '');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3884e8f

Please sign in to comment.