Is this a regression?
The previous version in which this bug was not present was
No response
Description
Marking an input field as a autocomplete adds role="combobox" attribute which violates WCAG ITEM: 4.1.2 Name, Role, Value.
Reproduction
StackBlitz link:
Steps to reproduce:
- https://stackblitz.com/edit/components-issue-starter-xjowe1gm?file=src%2Fmain.ts
- Use browser console to see that input tag has
role="combobox"
Expected Behavior
input tag role should accurately reflect input tag
Actual Behavior
input tag has role="combobox" when autocomplete is used
Environment
- Angular: 18-22* not tested on earlier versions
- CDK/Material: 18-22
- Browser(s): Edge, Chrome, Safari
- Operating System (e.g. Windows, macOS, Ubuntu): Mac and Windows
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Marking an input field as a autocomplete adds
role="combobox"attribute which violates WCAG ITEM: 4.1.2 Name, Role, Value.Reproduction
StackBlitz link:
Steps to reproduce:
role="combobox"Expected Behavior
input tag role should accurately reflect input tag
Actual Behavior
input tag has
role="combobox"when autocomplete is usedEnvironment