-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(input): remove css variable and update helper text to use valid highlight in ionic theme #30272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| } | ||
|
|
||
| :host(.ion-touched.ion-invalid) .error-text { | ||
| color: var(--text-color-invalid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code can be removed because the common file has this:
.input-bottom .error-text {
color: var(--highlight-color-invalid);
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected because I removed the 5px padding top from the helper/error text which is not in the Figma design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected because I removed the 5px padding top from the helper/error text which is not in the Figma design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the helper text to use the --highlight-color-valid which follows how customizing the invalid color works.
thetaPC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue number: internal
What is the new behavior?
--text-color-invalidvariable so the customization across components and themes for helper & error text is consistent.--highlight-color-validto ensure customization works the same as invalidDoes this introduce a breaking change?
This theme is not released yet so it is not a breaking change to remove CSS variables.
Other information
Preview