-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
fix(input): adjust colors, padding, fonts & heights for ionic theme #29520
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} | ||
|
||
:host(.label-floating) .label-text-wrapper { | ||
@include transform(none); |
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.
By removing this transform we are able to set the font-size
directly instead of scaling it down from the :host
font size.
* Label text should not extend | ||
* beyond the bounds of the input. | ||
*/ | ||
max-width: calc((100% - var(--padding-start) - var(--padding-end)) / #{$form-control-label-stacked-scale}); |
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 no longer needed without the transform
as a rule already exists to set the max-width
here:
max-width: calc(100% - var(--padding-start) - var(--padding-end)); |
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, verified with Figma too
Issue number: internal
What is the current behavior?
Input styles were slightly different from the ionic theme design.
What is the new behavior?
Updates the following:
font-size
directlytokens
where they were notDoes this introduce a breaking change?
Other information
The underline (undefined) fill looks off from the design but issue ROU-5151 exists for implementing it so I assume it will be fixed there.
Image Comparison
Note
The design is not going to match perfectly because we are not using the Inter font in our tests.