Repository navigation
fix(select): adjust label alignment when in a card - #27202
Merged
Merged
Conversation
|
|
sean-perkins
left a comment
Contributor
There was a problem hiding this comment.
Can we add screenshot tests for the select being rendered in a card, so that it doesn't regress in the future?
liamdebeasi
suggested changes
Apr 14, 2023
mapsandapps
marked this pull request as draft
April 19, 2023 14:28
mapsandapps
marked this pull request as ready for review
April 19, 2023 19:37
| await page.setContent(` | ||
| <ion-card> | ||
| <ion-card-content> | ||
| <ion-item style="border: 1px solid grey; margin: 16px"> |
Contributor
There was a problem hiding this comment.
Is the border for a visual reference for the label alignment? If so, what is the margin: 16px for?
~ Nit: Can we add lines="none" to the ion-item if we are going to draw a border around the container? Currently there are two bottom border lines.
liamdebeasi
approved these changes
Apr 20, 2023
liamdebeasi
left a comment
Contributor
There was a problem hiding this comment.
+1 to Sean's comments, but otherwise looks good.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 20, 2023
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 20, 2023
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 20, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue URL: resolves #27086
What is the current behavior?
When an
ion-selectis inside a card, the label is slightly lower than it should be, making it out of alignment with the label of anion-input.What is the new behavior?
ion-inputandion-selectare in line with each other.Does this introduce a breaking change?
Other information
This bug was occurring because the label of ion-select is in the shadow DOM. As recommended, this fix was also added to ion-input and ion-textarea in case those labels are also later moved to the shadow DOM.
Before:

After:
