-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: floating label is not centered in input on ios mode #20153
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
Comments
Thanks for the report. In Ionic 7 we will be introducing a new syntax for using form components such as The reported issue is fixed with this new syntax. Work to update |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] react 4.11.0
Current behavior:
IonLabel is positioned incorrectly in iOS only. It seems IonLabel is far too low when used in an input box for iOS user agents. It is positioned correctly for Web and Android user agents however - refer to screenshots below.
Expected behavior:
iOS labels should be centered just like in the Web or Android version
Steps to reproduce:
Using the dark theme described in the documentation and trying to use
floating
labels. No other styling changes required.Related code:
Using it like below
Other information:
Screenshot with iOS user agent
It is quite easy to see how the
Password
label is misplaced (specially when comparing to the android screenshot), however when selecting the input box, the label floats correctly.Screenshot with Android user agent
Ionic info:
The text was updated successfully, but these errors were encountered: