-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/dialog): dialog name on mac only using aria-label #29264
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
Conversation
Deployed dev-app for 119d68b to: https://ng-dev-previews-comp--pr-angular-components-29264-dev-rjpcttjr.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
4d12a2a
to
9a62391
Compare
478e548
to
2342929
Compare
bac212f
to
c8c15d7
Compare
b830917
to
85be3e2
Compare
c17c4f0
to
6f11b5c
Compare
8f902b4
to
fbf8f31
Compare
7f80749
to
8d66cc2
Compare
74c5764
to
0535924
Compare
1fccc53
to
d550311
Compare
d3408cb
to
735a605
Compare
Fixes bug with Angular Components Dialog component on Mac whether using Chrome or Firefox the screenreader does not read the dialog name/title unless it is using an aria-label. Updates the dialog-content-directives to read/apply the aria- labelledby and aria-describedby values if they exist. Fixes b/274674581
Fixes Angular Components Dialog component where the dialog name is not read by VoiceOver/screenreader on macOS chrome & firefox browsers. Attempts to retrieve any id associated with aria-labelledby or aria-describedby and taking the innerHTML or the aria-label of that element and applying that value to the dialog's aria-label. Fixes b/274674581
…ome or firefox Fixes bug in Angular Components Dialog component where the aria-labelledby and aria-describedby values are not being read by Chrome or Firefox when using a mac. This checks if there is an html attribute of aria-labelledby or aria-describedby and grabs the innerText or aria-label value and uses that value as the aria-label for the dialog only on mac using chrome or firefox. Fixes b/274674581
…ome and firefox Fixes Angular Components Dialog component where the mac screenreader is not reading the associated aria-labelledby id value as the dialog name/title. Fixes logic checking for macos so that the function_getDialogName() gets called when the value of the arialabelledby id element gets inserted into the aria-label value. Fixes b/274674581
Cleans up fix for Angular Component Dialog component's fix to update the dialog aria-label if the user's OS is a mac since mac using a chrome or firefox browser the screenreader does NOT read the dialog name if the value is portrayed by aria-labelledby or aria-describedby. Cleaned up console logs and unused attributes. Fixes b/274674581
…ome or firefox Cleans up unused variables and comments. Fixes b/274674581
…sing chrome or firefox Updates fix for Angular Components Dialog issue where the dialog name is not being read by the screenreader when specifically using macos (and potentially ios) screenreader when using chrome or firefox browsers. Removes unused commented out code and includes ios as part of the logic to call _getDialogName(). Fixes b/274674581
…ome or firefox Adds console.log tests to check new additions to Platform CDK which will be used for dialog name fix instead of previous logic. Fixes b/274674581
…efox Updates previous fix adding Windows and Linux checks to Platform CDK and replaces windows.navigator.userAgent with using Platform CDK check. Fixes b/274674581
Updates fix for Angular Components Dialog component to revert previous changes to aria-describedBy value to what it previously was to not upgrade its value to aria-label. Fixes _getDialogName function to return a string which gets applied to the ariaLabel config value. Fixes b/274674581
Updates previous fix to Angular Components Dialog component to remove unnecessary to our fix platform checks for WINDOWS and LINUX. Simplifies logic to check for platform in material/ dialog-container. Fixes b/274674581
Updates previous fix and removes unused import to fix lint error.
… adoption Updates to put aria-labelledby values as the priority and the aria-label as the backup.
735a605
to
119d68b
Compare
Reverting this PR and closing as it looks like the aria-labelledby bug is specific to MacOS+Firefox even on a plain HTML/CSS/Vanilla Javascript Dialog and is not due to Angular Components. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes bug with Angular Components Dialog component on Mac whether using Chrome or Firefox the screenreader does not read the dialog name/title unless it is using an aria-label. Updates the dialog-content-directives to read/apply the aria- labelledby and aria-describedby values if they exist.
Fixes b/274674581