Skip to content

Commit

Permalink
fix(checkbox): Prevent checkboxes and radios from changing size with …
Browse files Browse the repository at this point in the history
…multiline label (#497)
  • Loading branch information
Mike Yu authored and amsheehan committed Apr 11, 2017
1 parent 12bd03e commit 2e1023c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdc-checkbox/mdc-checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
box-sizing: content-box;
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
1 change: 1 addition & 0 deletions packages/mdc-radio/mdc-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ $mdc-radio-transition-duration: 120ms;
box-sizing: border-box;
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 Down

0 comments on commit 2e1023c

Please sign in to comment.