fix(ngAria): do not set aria attributes on input[type="hidden"]#16367
Conversation
This fixes a error found by @edclements using the Google Accessibility Developer Tools audit. Input fields of type hidden shouldn't have aria attributes. https://www.w3.org/TR/html-aria/#allowed-aria-roles-states-and-properties-1 Closes angular#15113
|
Thanks @gkalpak . Just to clarify, are you okay with thi going into 1.6.x too? Because I currently have not added a BC notice. |
|
Hm...you are sneaky 😛 |
|
@gkalpak you said it was a BC and that you would add the BC label: 😛 #15113 (comment) |
|
But I didn't 😛 |
Because you forgot 😛 |
This fixes a error found by @edclements using the Google Accessibility Developer Tools audit.
Input fields of type hidden shouldn't have aria attributes.
https://www.w3.org/TR/html-aria/#allowed-aria-roles-states-and-properties-1
Closes #15113
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
aria attributes added to input type hidden
What is the new behavior (if this is a feature change)?
Not anymore.
Does this PR introduce a breaking change?
I would say not actually, because the previous behavior didnt follow the spec and I can'T see why anyone would rely on this behavior. It was marked as breaking change in #15113, though
Please check if the PR fulfills these requirements
Other information:
Rebased and updated version of #15113