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

fix(ui5-textarea): announce required textarea #2385

Merged
merged 4 commits into from
Dec 7, 2020
Merged

Conversation

fifoosid
Copy link
Contributor

@fifoosid fifoosid commented Oct 22, 2020

Part of #2374

@@ -25,6 +28,7 @@
?required="{{required}}"
aria-required="{{required}}"
aria-label="{{ariaLabelText}}"
aria-labelledby="{{_id}}-acc-text"
Copy link
Member

Choose a reason for hiding this comment

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

not sure if by adding aria-labelledby would prevent aria-label from reading, can you sync that with an expert, if not already discussed of course

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not a problem. The aria-label attribute is still read out by the screen reader

Copy link
Contributor

@elenastoyanovaa elenastoyanovaa left a comment

Choose a reason for hiding this comment

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

This is not the way to go with ACC related issues. If a certain information is not read out, even though it is set correctly, you should find the root cause (usually a SR software + browser issue). This is a workaround and I would prefer to not submit this kind of fixes - if the issue is indeed specific to the testing environment this would result in a double speech output in other browser+SR testing combinations and also when the issue is resolved in future.

What is more the reporter is right that when we have a native required attribute, the aria-required is not needed and should be removed (also it is not in the spec, I am not sure why it is there at all).

If the issue still persists, after removing the aria-required the problem should be isolated in a native example and tested if indeed the issue is not UI5 web components related.

Could you do the things above and also remove the aria-labelledby workaround and if the issue persists, isolate and test with native HTML and come back to me?

@fifoosid fifoosid merged commit c2baf6b into master Dec 7, 2020
@fifoosid fifoosid deleted the textarea-required branch December 7, 2020 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants