This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 250250 }
251251}
252252
253+ ///
254+ /// Sets the max-width for the notch
255+ ///
256+ /// @param {Number} $max-width Max-width for the notch
257+ ///
258+ @mixin notch-max-width ($max-width , $query : feature-targeting-functions .all ()) {
259+ $feat-structure : feature-targeting-functions .create-target ($query , structure );
260+
261+ :not (.mdc-notched-outline--notched ) .mdc-notched-outline__notch {
262+ @include feature-targeting-mixins .targets ($feat-structure ) {
263+ max-width : $max-width ;
264+ }
265+ }
266+ }
267+
253268//
254269// Private
255270//
Original file line number Diff line number Diff line change 11341134 @include floating-label-mixins .shake-animation (text- field- outlined- leading- icon- rtl, $query : $query );
11351135 }
11361136
1137+ $icon-padding : icon-variables .$leading-icon-padding-left + icon-variables .$icon-size + icon-variables .$leading-icon-padding-right ;
1138+ $notch-truncation : $icon-padding + notched-outline-variables .$leading-width ;
1139+ $left-spacing : $icon-padding - notched-outline-variables .$leading-width ;
1140+
1141+ @include notched-outline-mixins .notch-max-width (calc (100% - #{$notch-truncation } ), $query : $query );
1142+
11371143 .mdc-floating-label {
11381144 @include feature-targeting-mixins .targets ($feat-structure ) {
1139- $icon-padding : icon-variables .$leading-icon-padding-left + icon-variables .$icon-size + icon-variables .$leading-icon-padding-right ;
1140-
1141- @include rtl-mixins .reflexive-position (
1142- left ,
1143- $icon-padding - notched-outline-variables .$leading-width
1144- );
1145+ @include rtl-mixins .reflexive-position (left , $left-spacing );
11451146 }
11461147 }
11471148}
You can’t perform that action at this time.
0 commit comments