Skip to content

Commit

Permalink
fix(core): PrimitiveTextfield fix memory leak (#6697) (#6698)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Feb 6, 2024
1 parent f3d19e1 commit 1333996
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/core/styles/mixins/textfield.less
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@
:host[data-size='l']:not(._label-outside) &,
:host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield) {
padding-top: 1.25rem;
}

:host[data-size='m']:not(._label-outside) &,
:host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield) {
padding-top: 1rem;
}

:host[data-size='l']:not(._label-outside) & {
padding-top: 1.25rem;

// Workaround for raising placeholder in temporary autofill
&:-webkit-autofill + .t-content .t-placeholder {
Expand All @@ -143,10 +152,7 @@
}
}

:host[data-size='m']:not(._label-outside) &,
:host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield) {
padding-top: 1rem;

:host[data-size='m']:not(._label-outside) & {
// Workaround for raising placeholder in temporary autofill
&:-webkit-autofill + .t-content .t-placeholder {
font-size: 0.69rem;
Expand Down

0 comments on commit 1333996

Please sign in to comment.