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

fix(text-field): Fix textarea-shape-radius mixin behavior for input #3982

Merged
merged 4 commits into from
Oct 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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