-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix(ngAria): don't attach roles to native controls #14145
Conversation
I can't found anything to be updated in the documentation. |
fc6e726
to
b8f8822
Compare
compileElement('<a ng-click="doClick()"></a>'); | ||
expect(element.attr('role')).toBe(undefined); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Redundant newline
Not super important, but it's more concise to use the |
b8f8822
to
fed351a
Compare
Thanks for your feedback, I have updated the code Thanks. |
The commit message must still be updated to conform with our standard on Breaking changes: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#heading=h.gbbngquhe0qa |
0eb5441
to
2f981b7
Compare
@Narretz |
@m-amr you still need to add an actual explanation of the breaking change, because that will show up in the changelog, e.g. roles are not added to native input / form elements anymore, and that this should not affect accessibility, because native inputs are accessible by default. |
2d2af6b
to
e101e8d
Compare
@Narretz i have added some explanation about the change |
e101e8d
to
185b982
Compare
185b982
to
6fd9c76
Compare
prevent ngAria from attaching roles to textarea, button, select, summary, details, a and input Closes angular#14076 BREAKING CHANGE: Curreny behavior is that ngAria don't attach roles to input elements but it does so to other native controls. so this change will prevent ngAria from attaching roles to native elements like (textrea, select, button, etc) and it will only attach roles to non-native controls. and this should not affect accessibility, because native inputs are accessible by default. (albeit a small one that shouldn't affect a11y)
fix
attach roles to these native element (textarea, select, button)
don't attach roles to these native these element (textarea, select, button)
no
don't add roles to (textarea, button, select, input)
fix #14076