Skip to content

Commit

Permalink
chore(textfield): restore two-icons position mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncLiz committed Jan 8, 2020
1 parent 4b5969a commit 1988a4a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -698,13 +698,23 @@
}

@mixin mdc-text-field-with-both-icons_ {
@include mdc-text-field-icon-horizontal-position-two-icons_(
$mdc-text-field-icon-position,
$mdc-text-field-trailing-icon-position
);

.mdc-text-field__input {
padding-right: $mdc-text-field-icon-padding;
padding-left: $mdc-text-field-icon-padding;
}
}

@mixin mdc-text-field-dense-with-both-icons_ {
@include mdc-text-field-icon-horizontal-position-two-icons_(
$mdc-text-field-dense-icon-position,
$mdc-text-field-dense-icon-position
);

.mdc-text-field__input {
padding-right: $mdc-text-field-dense-icon-padding;
padding-left: $mdc-text-field-dense-icon-padding;
Expand Down
5 changes: 5 additions & 0 deletions packages/mdc-textfield/icon/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
}
}

@mixin mdc-text-field-icon-horizontal-position-two-icons_($position-left, $position-right) {
@include mdc-text-field-leading-icon-horizontal-position_($position-left);
@include mdc-text-field-trailing-icon-horizontal-position_($position-right);
}

@mixin mdc-text-field-icon_ {
position: absolute;
top: 50%;
Expand Down

0 comments on commit 1988a4a

Please sign in to comment.