-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
When I upgraded to ionic 7, I noticed the warning in console about aria-label or label needed on various component (mainly, ion-input, ion-select, ion-textarea).
I have my own layout structure for look & responsive purpose, so I cannot just use "label" property. Thus, I tried to add aria-label instead.
But I found out that, after I added aria-label (or label property for that matter), the look and behavior of those components got changed.
namely:
- all: line is not highlighted anymore( when the component got focus)
- ion-input: placeholder gets shown all the time (previously, will only be shown when the component gets focus)
- ion-select: the arrow of the select box is not at the end of component and no transition animation
- ion-select: Header in alert interface is not shown anymore
Those structure and issues have been demonstrated here:
https://stackblitz.com/edit/3we1ad-cymjmo?file=index.html
Expected Behavior
The behavior and appearance of ion-input/ion-select/ion-textarea should not be altered after adding aria-label or label property.
Steps to Reproduce
- Wrap ion-input or ion-select or ion-textarea in ion-item
- Add aria-label or label property
- Behavior get altered
Code Reproduction URL
https://stackblitz.com/edit/3we1ad-cymjmo?file=index.html
Ionic Info
Ionic:
Ionic CLI : 7.0.1 (C:\Users\User\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 7.0.1
@angular-devkit/build-angular : 15.2.5
@angular-devkit/schematics : 10.1.7
@angular/cli : 15.2.5
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 4.7.3
@capacitor/android : 4.7.3
@capacitor/core : 4.7.3
@capacitor/ios : 4.7.3
Utility:
cordova-res : not installed globally
native-run : 1.7.2
System:
NodeJS : v16.18.0 (C:\Program Files\nodejs\node.exe)
npm : 8.19.2
OS : Windows 10
Additional Information
No response