-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
I am using 18.2.14; however, this issue also present on the https://material.angular.dev/components/select/overview page.
When using the WAVE accessibility scanner, we see that every mat-select present on the page flags an "Orphaned Form Label" accessibility failure.
Reproduction
REPL: https://material.angular.dev/components/select/examples
Steps to reproduce:
- Install the WAVE browser extenstion https://wave.webaim.org/extension/
- Navigate to: https://material.angular.dev/components/select/examples
- Right click on page and select "WAVE this page"
- Notice the "Orphaned Form Label" alerts on all mat-select
*Note - I tried to upload a screenshot, but the file upload seems to be failing for some reason
Expected Behavior
Labels should be correctly programatically associated to the form elements so that the WAVE scan does not flag any correctly used mat-select components as "Orphaned Form Label"
Actual Behavior
Labels are incorrectly associated to the form elements so that the WAVE scan is flagging correctly used mat-select components as "Orphaned Form Label"
Environment
- Angular: 18.2.12
- CDK/Material: 18.2.14-21.1.2
- Browser(s): Edge, Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS Sequoia, Windows 11