-
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(searchbar): cancel icon aligns with back button #28478
Conversation
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 took a look at this and I had different results. Using the images in the description, v4 was also slightly misaligned:
I also took a closer look at the padding used in this PR (8px
) because it looked off just barely, and found that using 9px
seems to get us closer in alignment:
Let me know if you are seeing something different or if you need a higher res of my last image.
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.
Looks good! 👍
Issue number: resolves #28468
What is the current behavior?
The cancel button in the searchbar used to align with the back button, but that behavior gradually regressed between Ionic v4 and Ionic v7.
What is the new behavior?
ion-back-button
icon was 24px. This caused the icons to never align even with 9px. (This should cause a few additional diffs)Note that in v4 the alignment was slightly off. It was fixed in v5, but then broke in v6 and remained unchanged in v7 (until now).
Does this introduce a breaking change?
Other information
Dev build:
7.5.4-dev.11699310489.151b2717