Skip to content

Commit cedab14

Browse files
committed
feat(textarea): use gray tokens
1 parent 307afa1 commit cedab14

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

core/src/components/textarea/test/validation/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
font-size: 12px;
2525
font-weight: normal;
2626

27-
color: var(--ion-color-step-600);
28-
2927
margin-top: 10px;
3028
margin-bottom: 5px;
3129
}

core/src/components/textarea/textarea.md.outline.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// ----------------------------------------------------------------
55

66
:host(.textarea-fill-outline) {
7-
--border-color: #{$background-color-step-300};
7+
--border-color: var(--ion-color-gray-300);
88
--border-radius: 4px;
99
--padding-start: 16px;
1010
--padding-end: 16px;
@@ -33,7 +33,7 @@
3333
*/
3434
@media (any-hover: hover) {
3535
:host(.textarea-fill-outline:hover) {
36-
--border-color: #{$background-color-step-750};
36+
--border-color: var(--ion-color-gray-750);
3737
}
3838
}
3939

core/src/components/textarea/textarea.md.solid.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// ----------------------------------------------------------------
55

66
:host(.textarea-fill-solid) {
7-
--background: #{$background-color-step-50};
8-
--border-color: #{$background-color-step-500};
7+
--background: var(--ion-color-gray-50);
8+
--border-color: var(--ion-color-gray-500);
99
--border-radius: 4px;
1010
--padding-start: 16px;
1111
--padding-end: 16px;
@@ -46,8 +46,8 @@
4646
*/
4747
@media (any-hover: hover) {
4848
:host(.textarea-fill-solid:hover) {
49-
--background: #{$background-color-step-100};
50-
--border-color: #{$background-color-step-750};
49+
--background: var(--ion-color-gray-100);
50+
--border-color: var(--ion-color-gray-750);
5151
}
5252
}
5353

@@ -56,8 +56,8 @@
5656
* much darker on focus.
5757
*/
5858
:host(.textarea-fill-solid.has-focus) {
59-
--background: #{$background-color-step-150};
60-
--border-color: #{$background-color-step-750};
59+
--background: var(--ion-color-gray-150);
60+
--border-color: var(--ion-color-gray-750);
6161
}
6262

6363
:host(.textarea-fill-solid) .textarea-wrapper {

core/src/components/textarea/textarea.native.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@
7272
// ----------------------------------------------------------------
7373

7474
.textarea-bottom .helper-text {
75-
color: globals.$text-color-step-300;
75+
color: var(--ion-color-gray-700);
7676
}
7777

7878
// Textarea Max Length Counter
7979
// ----------------------------------------------------------------
8080

8181
.textarea-bottom .counter {
82-
color: globals.$text-color-step-300;
82+
color: var(--ion-color-gray-700);
8383

8484
padding-inline-start: 16px;
8585
}

0 commit comments

Comments
 (0)