|
622 | 622 | // Icons |
623 | 623 |
|
624 | 624 | @mixin mdc-text-field-with-leading-icon_ { |
625 | | - @include mdc-text-field-icon-horizontal-position_( |
626 | | - left, |
627 | | - $mdc-text-field-icon-position |
628 | | - ); |
| 625 | + @include mdc-text-field-leading-icon-horizontal-position_($mdc-text-field-icon-position); |
629 | 626 |
|
630 | 627 | .mdc-text-field__input { |
631 | 628 | @include mdc-rtl-reflexive-property(padding, $mdc-text-field-icon-padding, $mdc-text-field-input-padding); |
|
637 | 634 | } |
638 | 635 |
|
639 | 636 | @mixin mdc-text-field-dense-with-leading-icon_ { |
640 | | - @include mdc-text-field-icon-horizontal-position_( |
641 | | - left, |
642 | | - $mdc-text-field-dense-icon-position |
643 | | - ); |
| 637 | + @include mdc-text-field-leading-icon-horizontal-position_($mdc-text-field-dense-icon-position); |
644 | 638 |
|
645 | 639 | .mdc-text-field__input { |
646 | 640 | @include mdc-rtl-reflexive-property(padding, $mdc-text-field-dense-icon-padding, $mdc-text-field-input-padding); |
|
652 | 646 | } |
653 | 647 |
|
654 | 648 | @mixin mdc-text-field-outlined-with-leading-icon_ { |
655 | | - @include mdc-text-field-icon-horizontal-position_( |
656 | | - left, |
657 | | - $mdc-text-field-icon-position |
658 | | - ); |
| 649 | + @include mdc-text-field-leading-icon-horizontal-position_($mdc-text-field-icon-position); |
659 | 650 | @include mdc-notched-outline-floating-label-float-position-absolute($mdc-text-field-outlined-label-position-y, 32px); |
660 | 651 | @include mdc-floating-label-shake-animation(text-field-outlined-leading-icon); |
661 | 652 |
|
|
686 | 677 | } |
687 | 678 |
|
688 | 679 | @mixin mdc-text-field-with-trailing-icon_ { |
689 | | - @include mdc-text-field-icon-horizontal-position_( |
690 | | - right, |
691 | | - $mdc-text-field-trailing-icon-position |
692 | | - ); |
| 680 | + @include mdc-text-field-trailing-icon-horizontal-position_($mdc-text-field-trailing-icon-position); |
693 | 681 |
|
694 | 682 | .mdc-text-field__input { |
695 | 683 | @include mdc-rtl-reflexive-property(padding, $mdc-text-field-input-padding, $mdc-text-field-icon-padding); |
696 | 684 | } |
697 | 685 |
|
698 | 686 | // Outlined uses 16px for text alignment when using a trailing icon. |
699 | 687 | &.mdc-text-field--outlined { |
700 | | - @include mdc-text-field-icon-horizontal-position_( |
701 | | - right, |
702 | | - $mdc-text-field-icon-position |
703 | | - ); |
| 688 | + @include mdc-text-field-trailing-icon-horizontal-position_($mdc-text-field-icon-position); |
704 | 689 | } |
705 | 690 | } |
706 | 691 |
|
707 | 692 | @mixin mdc-text-field-dense-with-trailing-icon_ { |
708 | | - @include mdc-text-field-icon-horizontal-position_( |
709 | | - right, |
710 | | - $mdc-text-field-dense-icon-position |
711 | | - ); |
| 693 | + @include mdc-text-field-trailing-icon-horizontal-position_($mdc-text-field-dense-icon-position); |
712 | 694 |
|
713 | 695 | .mdc-text-field__input { |
714 | 696 | @include mdc-rtl-reflexive-property(padding, $mdc-text-field-input-padding, $mdc-text-field-dense-icon-padding); |
715 | 697 | } |
716 | 698 | } |
717 | 699 |
|
718 | 700 | @mixin mdc-text-field-with-both-icons_ { |
719 | | - @include mdc-text-field-icon-horizontal-position-two-icons_( |
720 | | - $mdc-text-field-icon-position, |
721 | | - $mdc-text-field-trailing-icon-position |
722 | | - ); |
723 | | - |
724 | 701 | .mdc-text-field__input { |
725 | 702 | padding-right: $mdc-text-field-icon-padding; |
726 | 703 | padding-left: $mdc-text-field-icon-padding; |
727 | 704 | } |
728 | 705 | } |
729 | 706 |
|
730 | 707 | @mixin mdc-text-field-dense-with-both-icons_ { |
731 | | - @include mdc-text-field-icon-horizontal-position-two-icons_( |
732 | | - $mdc-text-field-dense-icon-position, |
733 | | - $mdc-text-field-dense-icon-position |
734 | | - ); |
735 | | - |
736 | 708 | .mdc-text-field__input { |
737 | 709 | padding-right: $mdc-text-field-dense-icon-padding; |
738 | 710 | padding-left: $mdc-text-field-dense-icon-padding; |
|
0 commit comments