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

Improve accessibility for Authorization buttons #8998

Closed
vmware-jaret opened this issue Jul 5, 2023 · 2 comments · Fixed by #8999
Closed

Improve accessibility for Authorization buttons #8998

vmware-jaret opened this issue Jul 5, 2023 · 2 comments · Fixed by #8999

Comments

@vmware-jaret
Copy link
Contributor

vmware-jaret commented Jul 5, 2023

Content & configuration

The Authorize and Logout buttons do not provide additional descriptions that are used for improving accessibility, e.g. by screen readers.

Is your feature request related to a problem?

N.A.: not an existing filed problem.

Describe the solution you'd like

Based upon Web Accessibility Guidelines v2.0 (https://www.w3.org/TR/WCAG20/) adding a hidden label would be sufficient to provide addition descriptions without changing the UI itself.

Describe alternatives you've considered

See https://www.w3.org/WAI/WCAG21/Techniques/html/H44 for the alternatives besides a hidden label (such as roles).

Additional context

SwaggerAuthorizeButton Related issues (but with broader scope): - https://github.com//issues/6512 - https://github.com//issues/5297
vmware-jaret added a commit to vmware-jaret/swagger-ui that referenced this issue Jul 5, 2023
- Introduced the AuthorizeButton component that entails the apply authorization and remove authorization functionality, as well as a close button.
- Unit tests provided for different states.
- AuthorizeButton is able to be used for both form submit and onClick function behavior.
vmware-jaret added a commit to vmware-jaret/swagger-ui that referenced this issue Jul 5, 2023
- Introduced the AuthorizeButton component that entails the apply authorization and remove authorization functionality, as well as a close button.
- Unit tests provided for different states.
- AuthorizeButton is able to be used for both form submit and onClick function behavior.
@vmware-jaret
Copy link
Contributor Author

@char0n This is the first issue and PR I do for this repository. Is according to you the above format correct and complete? And most importantly do you think the content make sense?

@char0n
Copy link
Member

char0n commented Aug 31, 2023

Hi @vmware-jaret,

Yeah, the issue format is just fine, thanks!

vmware-jaret added a commit to vmware-jaret/swagger-ui that referenced this issue Sep 6, 2023
- Introduced the AuthorizeButton component that entails the apply authorization and remove authorization functionality, as well as a close button.
- Unit tests provided for different states.
- AuthorizeButton is able to be used for both form submit and onClick function behavior.
vmware-jaret added a commit to vmware-jaret/swagger-ui that referenced this issue Sep 6, 2023
- Reverted the AuthorizationButton as <label /> is not needed and `aria-label` seems to be better fit for screen readers (see as well https://www.w3.org/WAI/WCAG21/Techniques/html/H44 that <label /> is not usable for <button /> or <input type="submit" /> HTML elements).
- Validation test for that aria-label is available for OAuth2 authorization and non-oauth2 authorization buttons.
char0n added a commit that referenced this issue Sep 7, 2023
…utton (#8999)

Refs #8998

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants