-
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
bug: v7 input, do not show highlight in item without ion-label #27763
Comments
Thanks for the report. I can reproduce this, but Ionic is working as intended. When using the |
Thank you for answer. I understand it but I played a bit also with Here link to stackblitz with example: |
So there are a couple issues here:
Until then I recommend opting your input into the legacy form syntax by setting |
Thanks for the issue! This issue is being closed due to the lack of a reply. 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. Thank you for using Ionic! |
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
Issue Summary:
When using ion-input within ion-item, and not add ion-label element - states(css classes) such as "focus", "disabled", and "invalid" are not set to ion-item element, it can lead to problems with setting highlight variables and other related functionalities. In the ionic 6 works as expected.
Expected Behavior
--highlight-color-focused: #43e7f3;
--highlight-color-valid: #6f58d8;
--highlight-color-invalid: #ff46be;
should work without using ion-label element
Steps to Reproduce
3.inspect ion-item element classes in devtools
Code Reproduction URL
https://stackblitz.com/edit/angular-6xeqay?file=src%2Fapp%2Fexample.component.html
Ionic Info
Ionic:
Ionic CLI : 7.1.1
Ionic Framework : @ionic/angular 7.1.2
@angular-devkit/build-angular : 16.1.0
@angular-devkit/schematics : 16.1.0
@angular/cli : 16.1.3
Capacitor:
Capacitor CLI : 5.0.5
@capacitor/android : 5.0.5
@capacitor/core : 5.0.5
@capacitor/ios : 5.0.5
Utility:
cordova-res : not installed globally
native-run : 1.7.2
System:
NodeJS : v18.16.1
npm : 9.5.1
OS : macOS Unknown
Additional Information
No response
The text was updated successfully, but these errors were encountered: