Skip to content

feat(WASM): Enable A11y voice over capabilities - #4147

Merged
jeromelaban merged 5 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/a11y,wasm.voice.over
Oct 6, 2020
Merged

jeromelaban merged 5 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/a11y,wasm.voice.over

Conversation

@ajpinedam

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #
closes #1141

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

WASM target did not support screen reader capabilities.

What is the new behavior?

WASM target does support A11y screen reader capabilities

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@ajpinedam
ajpinedam requested review from a team and jeromelaban September 25, 2020 03:19
@gitpod-io

gitpod-io Bot commented Sep 25, 2020 •

Copy link
Copy Markdown

@ajpinedam
ajpinedam force-pushed the dev/anpi/a11y,wasm.voice.over branch from 88eec75 to 8b2dbc6 Compare September 25, 2020 03:19
@ajpinedam ajpinedam self-assigned this Sep 25, 2020
var role = FindHtmlRole(uiElement);
if (role != null)
{
uiElement.SetAttribute("role", role);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it necessary to set aria-label if role is null ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In those cases, we might not have the full requirement (role + aria-label) but it would make it easy to find for errors in the future. Meaning: arial-label available but no role it's a matter of the casing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jeromelaban updated the PR to set the arial-label only when a role is found. This way we can use the method overload suggested by @carldebilly. Two birds one shot. :)

@jeromelaban

Copy link
Copy Markdown
Member

You may also want to add some documentation about what works and what does not, and how to use it.

@jeromelaban
jeromelaban merged commit 2f7acc1 into unoplatform:master Oct 6, 2020
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.

a11y: output aria attributes or preferably semantic elements

4 participants