We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v8.x
The ion-input-password-toggle component causes layout shifts when it's parent ion-input has a disabled or readonly property
disabled
readonly
Affect is particularly visible when ion-input has labelPlacement="stacked"
labelPlacement="stacked"
Layout should not shift
https://stackblitz.com/edit/waav8e?file=src%2Fmain.tsx
Ionic:
Ionic CLI : 7.2.0
Utility:
cordova-res : not installed globally native-run : not installed globally
System:
NodeJS : v18.18.2 npm : 9.8.1 OS : Windows 10
Issue is caused because the ion-input-password-toggle component is larger than ion-input
The display: none css property may be replaced by visibility: hidden instead here:
display: none
visibility: hidden
ionic-framework/core/src/components/input/input.scss
Lines 609 to 616 in f238b42
The text was updated successfully, but these errors were encountered:
Fix ionic-team#29562: do not float label because of slotted items
b72a2e1
Bummer....I accidentally assigned the wrong issue number. Closed the PR.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
The ion-input-password-toggle component causes layout shifts when it's parent ion-input has a
disabled
orreadonly
propertyAffect is particularly visible when ion-input has
labelPlacement="stacked"
Expected Behavior
Layout should not shift
Steps to Reproduce
Code Reproduction URL
https://stackblitz.com/edit/waav8e?file=src%2Fmain.tsx
Ionic Info
Ionic:
Ionic CLI : 7.2.0
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v18.18.2
npm : 9.8.1
OS : Windows 10
Additional Information
Issue is caused because the ion-input-password-toggle component is larger than ion-input
The
display: none
css property may be replaced byvisibility: hidden
instead here:ionic-framework/core/src/components/input/input.scss
Lines 609 to 616 in f238b42
The text was updated successfully, but these errors were encountered: