Skip to content

Commit

Permalink
fix(label): text contents will repaint on change (#25395)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins authored Jun 3, 2022
1 parent 866d452 commit 52ec741
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions core/src/components/label/label.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
line-height: $label-ios-text-wrap-line-height;
}


// iOS Stacked & Floating Labels
// --------------------------------------------------

Expand All @@ -23,14 +22,14 @@

:host(.label-floating) {
@include margin(null, null, 0, null);
@include transform(translate3d(0, 29px, 0));
@include transform(translate(0, 29px));
@include transform-origin(start, top);

transition: transform 150ms ease-in-out;
}

:host-context(.item-textarea).label-floating {
@include transform(translate3d(0, 28px, 0));
@include transform(translate(0, 28px));
}

:host-context(.item-has-focus).label-stacked,
Expand All @@ -41,7 +40,7 @@
:host-context(.item-has-focus).label-floating,
:host-context(.item-has-placeholder:not(.item-input)).label-floating,
:host-context(.item-has-value).label-floating {
@include transform(translate3d(0, 0, 0), scale(.82));
@include transform(scale(0.82));
}

// iOS Typography
Expand Down Expand Up @@ -74,7 +73,12 @@
}

::slotted(*) p {
@include margin($item-ios-paragraph-margin-top, $item-ios-paragraph-margin-end, $item-ios-paragraph-margin-bottom, $item-ios-paragraph-margin-start);
@include margin(
$item-ios-paragraph-margin-top,
$item-ios-paragraph-margin-end,
$item-ios-paragraph-margin-bottom,
$item-ios-paragraph-margin-start
);

font-size: $item-ios-paragraph-font-size;

Expand Down

0 comments on commit 52ec741

Please sign in to comment.