Skip to content

Commit

Permalink
fix(radio): Center align radio box (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekmarakana authored and amsheehan committed Apr 21, 2017
1 parent 891dc60 commit 83d1815
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/mdc-checkbox/mdc-checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
display: inline-block;
position: relative;
box-sizing: content-box;
flex: 0 0 $mdc-checkbox-size;
width: $mdc-checkbox-size;
height: $mdc-checkbox-size;
flex: 0 0 $mdc-checkbox-size;
padding: ($mdc-checkbox-touch-area - $mdc-checkbox-size) / 2;
line-height: 0;
white-space: nowrap;
Expand Down
3 changes: 2 additions & 1 deletion packages/mdc-radio/mdc-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ $mdc-radio-transition-duration: 120ms;
display: inline-block;
position: relative;
box-sizing: border-box;
flex: 0 0 $mdc-radio-touch-area;
width: $mdc-radio-touch-area;
height: $mdc-radio-touch-area;
flex: 0 0 $mdc-radio-touch-area;
padding: ($mdc-radio-touch-area - $mdc-radio-ui-size) / 2;
cursor: pointer;
will-change: opacity, transform, border-color, background-color, color;
Expand All @@ -67,6 +67,7 @@ $mdc-radio-transition-duration: 120ms;
&__background {
display: inline-block;
position: absolute;
left: ($mdc-radio-touch-area - $mdc-radio-ui-size) / 2;
width: $mdc-radio-ui-pct;
height: $mdc-radio-ui-pct;
box-sizing: border-box;
Expand Down
8 changes: 4 additions & 4 deletions packages/mdc-toolbar/mdc-toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ $mdc-toolbar-mobile-breakpoint: 599px;
flex: 1;
align-items: flex-start;
justify-content: center;
z-index: 1;
overflow: hidden;
z-index: 1;

&--align-start {
justify-content: flex-start;
Expand All @@ -75,11 +75,11 @@ $mdc-toolbar-mobile-breakpoint: 599px;
&__title {
@include mdc-typography(title);

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
line-height: 1.5rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}

Expand Down

0 comments on commit 83d1815

Please sign in to comment.