Skip to content

Commit baa1981

Browse files
committed
refactor(textarea): remove css vars
1 parent bc5a444 commit baa1981

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

core/api.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,10 +1825,6 @@ ion-textarea,css-prop,--border-width,ios
18251825
ion-textarea,css-prop,--border-width,md
18261826
ion-textarea,css-prop,--color,ios
18271827
ion-textarea,css-prop,--color,md
1828-
ion-textarea,css-prop,--error-text-color,ios
1829-
ion-textarea,css-prop,--error-text-color,md
1830-
ion-textarea,css-prop,--helper-text-color,ios
1831-
ion-textarea,css-prop,--helper-text-color,md
18321828
ion-textarea,css-prop,--highlight-color-focused,ios
18331829
ion-textarea,css-prop,--highlight-color-focused,md
18341830
ion-textarea,css-prop,--highlight-color-invalid,ios

core/src/components/textarea/textarea.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the textarea
3030
* @prop --padding-bottom: Bottom padding of the textarea
3131
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the textarea
32-
*
33-
* @prop --helper-text-color: The color of the supporting text displayed beneath the textarea when the textarea is valid.
34-
* @prop --error-text-color: The color of the supporting text displayed beneath the textarea when the textarea is invalid and touched.
3532
*/
3633
--background: initial;
3734
--color: initial;
@@ -48,8 +45,6 @@
4845
--highlight-color-focused: #{ion-color(primary, base)};
4946
--highlight-color-valid: #{ion-color(success, base)};
5047
--highlight-color-invalid: #{ion-color(danger, base)};
51-
--helper-text-color: #{$text-color-step-300};
52-
--error-text-color: var(--highlight-color-invalid);
5348

5449
/**
5550
* This is a private API that is used to switch
@@ -418,13 +413,13 @@
418413
.textarea-bottom .error-text {
419414
display: none;
420415

421-
color: var(--error-text-color);
416+
color: var(--highlight-color-invalid);
422417
}
423418

424419
.textarea-bottom .helper-text {
425420
display: block;
426421

427-
color: var(--helper-text-color);
422+
color: $text-color-step-300;
428423
}
429424

430425
:host(.ion-touched.ion-invalid) .textarea-bottom .error-text {

0 commit comments

Comments
 (0)