Skip to content

Commit 73b9b4f

Browse files
committed
feat(input-otp): use gray tokens
1 parent 2637605 commit 73b9b4f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

core/src/components/input-otp/input-otp.md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
// --------------------------------------------------
1717

1818
:host(.input-otp-fill-outline) {
19-
--border-color: #{$background-color-step-300};
19+
--border-color: var(--ion-color-gray-300);
2020
}

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
--border-style: solid;
1515
--separator-width: 8px;
1616
--separator-border-radius: 999px;
17-
--separator-color: #{$background-color-step-150};
17+
--separator-color: var(--ion-color-gray-150);
1818
--highlight-color-focused: #{ion-color(primary, base)};
1919
--highlight-color-valid: #{ion-color(success, base)};
2020
--highlight-color-invalid: #{ion-color(danger, base)};
@@ -26,7 +26,7 @@
2626
// ----------------------------------------------------------------
2727

2828
.input-otp-description {
29-
color: $text-color-step-300;
29+
color: var(--ion-color-gray-700);
3030

3131
font-size: dynamic-font(12px);
3232

@@ -83,30 +83,30 @@
8383
}
8484

8585
:host(.input-otp-fill-solid) {
86-
--border-color: #{$background-color-step-50};
87-
--background: #{$background-color-step-50};
86+
--border-color: var(--ion-color-gray-50);
87+
--background: var(--ion-color-gray-50);
8888
}
8989

9090
// States
9191
// --------------------------------------------------
9292

9393
:host(.input-otp-disabled) {
94-
--color: #{$text-color-step-650};
94+
--color: var(--ion-color-gray-350);
9595
}
9696

9797
:host(.input-otp-fill-outline.input-otp-disabled) {
98-
--background: #{$background-color-step-50};
99-
--border-color: #{$background-color-step-100};
98+
--background: var(--ion-color-gray-50);
99+
--border-color: var(--ion-color-gray-100);
100100
}
101101

102102
:host(.input-otp-fill-outline.input-otp-readonly) {
103-
--background: #{$background-color-step-50};
103+
--background: var(--ion-color-gray-50);
104104
}
105105

106106
:host(.input-otp-fill-solid.input-otp-disabled),
107107
:host(.input-otp-fill-solid.input-otp-readonly) {
108-
--border-color: #{$background-color-step-100};
109-
--background: #{$background-color-step-100};
108+
--border-color: var(--ion-color-gray-100);
109+
--background: var(--ion-color-gray-100);
110110
}
111111

112112
// Colors

0 commit comments

Comments
 (0)