Skip to content

Commit 6a3efa8

Browse files
committed
Revert "fix(input): remove --text-color-invalid var"
This reverts commit 0e55445.
1 parent 230abcc commit 6a3efa8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

core/api.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,9 @@ ion-input,css-prop,--placeholder-font-weight,md
989989
ion-input,css-prop,--placeholder-opacity,ionic
990990
ion-input,css-prop,--placeholder-opacity,ios
991991
ion-input,css-prop,--placeholder-opacity,md
992+
ion-input,css-prop,--text-color-invalid,ionic
993+
ion-input,css-prop,--text-color-invalid,ios
994+
ion-input,css-prop,--text-color-invalid,md
992995

993996
ion-input-password-toggle,shadow
994997
ion-input-password-toggle,prop,color,"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined,undefined,false,true

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
--highlight-color-invalid: #{globals.$ion-semantics-danger-800};
1414
--placeholder-color: #{globals.$ion-primitives-neutral-800};
1515
--placeholder-opacity: 1;
16+
--text-color-invalid: #{globals.$ion-semantics-danger-800};
1617
--background: #{globals.$ion-primitives-base-white};
1718

1819
font-size: globals.$ion-font-size-350;
@@ -153,7 +154,7 @@
153154
}
154155

155156
:host(.ion-touched.ion-invalid) .error-text {
156-
color: var(--highlight-color-invalid);
157+
color: var(--text-color-invalid);
157158
}
158159

159160
:host(.has-focus.ion-valid),

core/src/components/input/input.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @prop --highlight-color-focused: The color of the highlight on the input when focused
2424
* @prop --highlight-color-valid: The color of the highlight on the input when valid
2525
* @prop --highlight-color-invalid: The color of the highlight on the input when invalid
26+
* @prop --text-color-invalid: The color of the error text on the input when invalid. Only applies to ionic theme.
2627
*
2728
* @prop --border-color: Color of the border below the input when using helper text, error text, or counter
2829
* @prop --border-radius: Radius of the input. A large radius may display unevenly when using fill="outline"; if needed, use shape="round" instead or increase --padding-start.

0 commit comments

Comments
 (0)