-
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(item): multiple input appearance when using datetime #25484
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 don't think this is the correct way of resolving this issue.
The styles that cause this are being added here: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/datetime/datetime.scss#L346
There is a defect in these mixins where the selector is being incorrectly generated, causing the selector to be :host-context([dir=rtl])
instead of :host-context([dir=rtl]) .calendar-day:after
. So really, this is just another instance of #25285.
There is a proposed fix in #25264 that should resolve the issue in #25483.
However, it would appear that the fix in https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/datetime/datetime.scss#L346 is not actually correct and only worked because of this bug. We will likely need to both these issues at the same time to avoid regressions.
I'll look into a better solution for the .calendar-day:after
position fix.
Sounds great! Thanks for pointing me to where it's being appended in our code. At one point I was able to narrow it to: :host .calendar-day:after {
@include position(50%, null, null, 50%);
} But didn't consider that the mixin may have been incorrectly applying the styles. Happy to look more into it if other tasks require your time 👍 |
Turns out we don't even need the RTL support in https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/datetime/datetime.scss#L346. The position+transform styles in the block are fixes for an iOS 13 bug. I tested it out and just doing We can probably remove the We should also look into getting #25264 ready for review. However, there are likely more instances of this issue that we have not seen yet. When fixing this it might be good to get a list of affected components. We can probably get a solid list by searching for |
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
)" This reverts commit 3089f38.
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Discovered when migrating item tests: #25479
Only in Google Chrome, when using
ion-datetime
with multiple inputs in anion-item
in RTL mode; the datetime will become clipped.Issue URL: #25483
What is the new behavior?
host-context
.Does this introduce a breaking change?
Other information
You can confirm this change locally with the existing
item/test/inputs
suite in RTL mode: http://localhost:3333/src/components/item/test/inputs?rtl=true