-
Notifications
You must be signed in to change notification settings - Fork 26.7k
refactor(core): render additional WAI-ARIA 1.3 property bindings as attributes #64850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refactor(core): render additional WAI-ARIA 1.3 property bindings as attributes #64850
Conversation
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.
While reviewing #63748, we were discussing with @leonsenft the issue of attributes that don't have a matching property.
As is, the change does add support for the new attributes but also introduces false positives for properties that don't match their attribute leading to runtime errors despite a successful compilation.
We probably need to rework a bit how the registry works (and probably deprecate binding to properties and to stick only to binding the attributes directly).
|
Actually I just talk a bit with @leonsenft we should be good to go. (I must understood the change in #63925). Can you make sure to take into acount the suggestions from Joey and rework the commit message to |
…ttributes Support additional ARIA properties from Accessible Rich Internet Applications (WAI-ARIA) version 1.3. | attribute | property | |-----------|----------| | `aria-activedescendant` | `ariaActiveDescendantElement` | | `aria-colindextext` | `ariaColIndexText` | | `aria-controls` | `ariaControlsElements ` | | `aria-describeyby` | `ariaDescribedByElements ` | | `aria-description` | `ariaDescription` | | `aria-details` | `ariaDetailsElements ` | | `aria-errormessage` | `ariaErrorMessageElements ` | | `aria-flowto` | `ariaFlowToElements ` | | `aria-labelledby` | `ariaLabelledByElements ` | | `aria-owns` | `ariaOwnsElements ` | | `aria-rowindextext` | `ariaRowIndexText ` | closes angular#64847
eec793f to
2cbb145
Compare
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.
LGTM
Reviewed-for: fw-security
Support additional ARIA properties from Accessible Rich Internet Applications (WAI-ARIA) version 1.3.
aria-activedescendantariaActiveDescendantElementaria-colindextextariaColIndexTextaria-controlsariaControlsElementsaria-describedbyariaDescribedByElementsaria-descriptionariaDescriptionaria-detailsariaDetailsElementsaria-errormessageariaErrorMessageElementsaria-flowtoariaFlowToElementsaria-labelledbyariaLabelledByElementsaria-ownsariaOwnsElementsaria-rowindextextariaRowIndexTextcloses #64847
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently the attributes / properties are not supported.
Therefore, an attribute binding must be used:
Issue Number: #64847
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Refer to https://www.w3.org/TR/wai-aria-1.3/#accessibilityroleandproperties-correspondence