Skip to content

Commit

Permalink
fix(select): Override floating label properties in select box (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Apr 18, 2018
1 parent 099fdf8 commit f71d905
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/mdc-select/mdc-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
}

width: 100%;
padding-top: 22px;
padding-bottom: 8px;
padding-top: 20px;
padding-bottom: 6px;
border: none;
border-bottom: 1px solid;
border-radius: 0;
Expand All @@ -79,6 +79,11 @@
appearance: none;
}

// stylelint-disable-next-line plugin/selector-bem-pattern
.mdc-floating-label {
pointer-events: none;
}

@include mdc-select-focused-line-ripple_ {
&::after {
transform: scale(1, 2);
Expand Down Expand Up @@ -114,12 +119,8 @@
background-position: left 10px center;
}

.mdc-select__native-control,
.mdc-select__label {
@include mdc-typography(subtitle1);
}

.mdc-select__native-control {
@include mdc-typography(subtitle1);
@include mdc-rtl-reflexive-property(padding, $mdc-select-label-padding, $mdc-select-arrow-padding);

height: 56px;
Expand All @@ -131,6 +132,7 @@
@include mdc-rtl-reflexive-position(left, 16px);

bottom: 12px;
line-height: 1.75rem;

&--float-above {
transform: translateY(-40%) scale(.75, .75);
Expand Down

0 comments on commit f71d905

Please sign in to comment.