Skip to content

Commit

Permalink
fix(text-field): Changes to text area label positioning to cover text…
Browse files Browse the repository at this point in the history
… content.

Other changes:
  - RTL position fix for text area label.
  - User can now scroll the text area content when hovering on label.
  • Loading branch information
abhiomkar committed May 25, 2018
1 parent 054cc5e commit 4458c28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -494,15 +494,16 @@
}

.mdc-floating-label {
@include mdc-rtl-reflexive-position(left, 1px);
@include mdc-floating-label-fill-color($mdc-textarea-background);

@include mdc-rtl-reflexive(left, 1px, right, 0);
@include mdc-rtl-reflexive-property(margin, 8px, 0);

top: $label-offset-y;
bottom: auto;
margin-top: 2px;
margin-left: 8px;
padding: 8px;
padding: 12px 8px 8px 8px;
line-height: 1.15;
pointer-events: none;
}
}

Expand Down

0 comments on commit 4458c28

Please sign in to comment.