Skip to content
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

feat: iframe accessibility #1154

Closed
wants to merge 15 commits into from
Closed

feat: iframe accessibility #1154

wants to merge 15 commits into from

Conversation

benmcginnis
Copy link
Member

This change udpates the iframe-common script to set several important attributes for screen reader's to properly interpret the presence of the iframe.

The attributes do the following things:

  • ariaBusy (aria-busy): notifies the screen reader that the iframe is loading
  • role=document: tells screen readers to treat the frame contents as a document
  • aria-live=assertive: tells screen readers to immediately read the frame content
  • tabindex=0: tabindex is required on document roles to ensure that it is treated as keyboard accessible

J=TECHOPS-10193
TEST=manual

Manually tested using both Mac VoiceOver and Windows Narrator and validated that the results were read by the screen reader.

cea2aj and others added 8 commits July 26, 2023 15:44
## v1.32.0

### Changes

- Support rendering of HTML for richTextV2 and markdown direct answers (#1138)
## v1.33.0

### Changes

- Update FAQ card to support answerV2 instead of answer (#1142)
- Update corresponding translation tests for above changes (#1147)
Iframe needs height in order for map and toggle button to be initialized and to fill js-answersMap
Fix iframe Answers Map/List toggle button on Mobile Error
@coveralls
Copy link

coveralls commented Oct 23, 2023

Coverage Status

coverage: 8.732% (-0.005%) from 8.737%
when pulling c60213d on feature/iframe-wcag
into 6a472ed on master.

EmilyZhang777
EmilyZhang777 previously approved these changes Oct 23, 2023
Copy link
Contributor

@nmanu1 nmanu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll also want to point the PR to hotfix/v1.33.2 instead of master if it should be part of the new patch. Otherwise, it should point to develop

This change udpates the iframe-common script to set several
important attributes for screen reader's to properly interpret the
presence of the iframe.

The attributes do the following things:
* ariaBusy (aria-busy): notifies the screen reader that the iframe is loading
* role=document: tells screen readers to treat the frame contents as a document
* aria-live=assertive: tells screen readers to immediately read the
  frame content
* tabindex=0: tabindex is required on document roles to ensure that it is
  treated as keyboard accessible

J=TECHOPS-10193
TEST=manual

Manually tested using both Mac VoiceOver and Windows Narrator and validated
that the results were read by the screen reader.
@benmcginnis benmcginnis changed the base branch from master to develop December 5, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants