Skip to content
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): only apply the shape to the outline fill in ionic theme #29482

Merged
merged 2 commits into from May 10, 2024

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented May 9, 2024

Issue number: internal


What is the current behavior?

The shape styles are being applied when the fill is unset in the ionic theme. This is incorrect per the input UX requirements as shape should only apply when fill is set to "outline". This is made apparent when looking at the existing styles for disabled.

What is the new behavior?

  • Only apply the shape styles to the "outline" fill
  • Move the use of the --background css variable to the native wrapper since this is what we use to style both the disabled and readonly states
Before After
before after

I am not sure why this wasn't caught with the shape additions, but it's probably because the minimum pixel ratio was not met.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Preview

Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2024 7:19pm

@github-actions github-actions bot added the package: core @ionic/core package label May 9, 2024
@brandyscarney brandyscarney marked this pull request as ready for review May 9, 2024 19:46
@brandyscarney brandyscarney requested a review from a team as a code owner May 9, 2024 19:46
@brandyscarney brandyscarney requested review from thetaPC and removed request for a team May 9, 2024 19:46

:host(.input-fill-outline.input-disabled) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed because it is covered by the :host(.input-disabled) class since I moved the --background variable assignment to the proper element

Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brandyscarney brandyscarney merged commit 8515c4e into ROU-4848 May 10, 2024
46 checks passed
@brandyscarney brandyscarney deleted the fix-input-shape-underline branch May 10, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants