Skip to content

Commit 2637605

Browse files
committed
feat(input): use gray tokens
1 parent 10d1e63 commit 2637605

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// ----------------------------------------------------------------
33

44
:host(.input-fill-outline) {
5-
--border-color: #{$background-color-step-300};
5+
--border-color: var(--ion-color-gray-300);
66
--border-radius: 4px;
77
--padding-start: 16px;
88
--padding-end: 16px;
@@ -31,7 +31,7 @@
3131
*/
3232
@media (any-hover: hover) {
3333
:host(.input-fill-outline:hover) {
34-
--border-color: #{$background-color-step-750};
34+
--border-color: var(--ion-color-gray-750);
3535
}
3636
}
3737

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// ----------------------------------------------------------------
33

44
:host(.input-fill-solid) {
5-
--background: #{$background-color-step-50};
6-
--border-color: #{$background-color-step-500};
5+
--background: var(--ion-color-gray-50);
6+
--border-color: var(--ion-color-gray-500);
77
--border-radius: 4px;
88
--padding-start: 16px;
99
--padding-end: 16px;
@@ -44,8 +44,8 @@
4444
*/
4545
@media (any-hover: hover) {
4646
:host(.input-fill-solid:hover) {
47-
--background: #{$background-color-step-100};
48-
--border-color: #{$background-color-step-750};
47+
--background: var(--ion-color-gray-100);
48+
--border-color: var(--ion-color-gray-750);
4949
}
5050
}
5151

@@ -54,8 +54,8 @@
5454
* much darker on focus.
5555
*/
5656
:host(.input-fill-solid.has-focus) {
57-
--background: #{$background-color-step-150};
58-
--border-color: #{$background-color-step-750};
57+
--background: var(--ion-color-gray-150);
58+
--border-color: var(--ion-color-gray-750);
5959
}
6060

6161
:host(.input-fill-solid) .input-wrapper {

core/src/components/input/input.native.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
width: 30px;
5656
height: 30px;
5757

58-
color: $text-color-step-400;
58+
color: var(--ion-color-gray-600);
5959
}
6060

6161
/**
@@ -108,14 +108,14 @@
108108
// ----------------------------------------------------------------
109109

110110
.input-bottom .helper-text {
111-
color: $text-color-step-300;
111+
color: var(--ion-color-gray-700);
112112
}
113113

114114
// Input Max Length Counter
115115
// ----------------------------------------------------------------
116116

117117
.input-bottom .counter {
118-
color: $text-color-step-300;
118+
color: var(--ion-color-gray-700);
119119

120120
padding-inline-start: 16px;
121121
}

core/src/components/input/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
}

0 commit comments

Comments
 (0)