Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(text-field): Fix textarea-shape-radius mixin behavior for input (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro authored Oct 24, 2018
1 parent 7f02a64 commit 1167289
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,14 @@
// background between the two borders in each corner when the
// textarea is focused. This also means we need to guard against
// invalid output.
$radius-value: $radius;
$radius-value: mdc-shape-prop-value($radius);
$trimmed-radius-value: ();

@if type-of($radius) == "list" {
$radius-value: ();

@each $corner in $radius {
$radius-value: append($radius-value, max($corner - 2, 0));
}
@each $corner in $radius-value {
$trimmed-radius-value: append($trimmed-radius-value, max($corner - 2, 0));
}

@include mdc-shape-radius($radius-value, $rtl-reflexive);
@include mdc-shape-radius($trimmed-radius-value, $rtl-reflexive);
}
}

Expand Down

0 comments on commit 1167289

Please sign in to comment.