Skip to content

Commit ad3e449

Browse files
committed
fix(checkbox, input, select, textarea): uniform invalid border color
1 parent b9ced55 commit ad3e449

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

core/src/components/checkbox/checkbox.ionic.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ input {
117117
}
118118

119119
.checkbox-bottom .error-text {
120-
color: globals.$ion-semantics-danger-800;
120+
color: globals.$ion-text-danger;
121121
}
122122

123123
.checkbox-bottom .helper-text {
@@ -198,7 +198,7 @@ input {
198198
// Ionic Design Checkbox Invalid
199199
// --------------------------------------------------
200200
:host(.ion-invalid) {
201-
--focus-ring-color: #{globals.$ion-border-focus-error};
201+
--focus-ring-color: #{globals.$ion-border-danger-default};
202202
}
203203

204204
:host(.ion-invalid:not(.checkbox-checked)),

core/src/components/input/input.ionic.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@
271271
color: globals.$ion-primitives-neutral-800;
272272
}
273273

274+
.input-bottom .error-text {
275+
color: globals.$ion-text-danger;
276+
}
277+
274278
:host(.has-focus.ion-valid) .helper-text {
275279
color: var(--highlight-color-valid);
276280
}

core/src/components/select/select.ionic.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
color: globals.$ion-primitives-neutral-800;
3737
}
3838

39+
.select-bottom .error-text {
40+
color: globals.$ion-text-danger;
41+
}
42+
3943
.select-text {
4044
min-width: globals.$ion-space-400;
4145

core/src/components/textarea/textarea.ionic.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ ion-icon {
146146
color: globals.$ion-text-subtlest;
147147
}
148148

149+
.textarea-bottom .error-text {
150+
color: globals.$ion-text-danger;
151+
}
152+
149153
:host(.has-focus.ion-valid) .helper-text {
150154
color: var(--highlight-color-valid);
151155
}

0 commit comments

Comments
 (0)