Skip to content

Commit 0e55445

Browse files
committed
fix(input): remove --text-color-invalid var
1 parent a0fa3b3 commit 0e55445

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

core/api.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,6 @@ 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
995992

996993
ion-input-password-toggle,shadow
997994
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
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};
1716
--background: #{globals.$ion-primitives-base-white};
1817

1918
font-size: globals.$ion-font-size-350;
@@ -154,7 +153,7 @@
154153
}
155154

156155
:host(.ion-touched.ion-invalid) .error-text {
157-
color: var(--text-color-invalid);
156+
color: var(--highlight-color-invalid);
158157
}
159158

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

core/src/components/input/input.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
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.
2726
*
2827
* @prop --border-color: Color of the border below the input when using helper text, error text, or counter
2928
* @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)