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 accessibility in doc site #640

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

BSFishy
Copy link
Contributor

@BSFishy BSFishy commented Mar 28, 2023

Description

There are a few places around the doc site where accessibility wasn't passing. This PR fixes that. This doesn't go into any sort of component iteration or refactoring components so these don't need to be specified, only fixing parts that are failing. Although, these might be a good place to start when refactoring components to be more accessible out of the box

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Matt Provost <[email protected]>
@BSFishy BSFishy requested a review from a team as a code owner March 28, 2023 21:05
@BSFishy BSFishy changed the title Fix accessibility Fix accessibility in doc site Mar 28, 2023
@BSFishy BSFishy mentioned this pull request Mar 28, 2023
6 tasks
@@ -127,7 +127,7 @@ const tpl = `
</style>
<a id="root" role="button" aria-labelledby="selected" aria-controls="dropdown" tabindex="0">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" role="img"
width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" aria-hidden="true">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context for reviewers: OuiIcon already adds the aria-hidden attribute given certain criteria. This icon would meet that criteria. Not sure why this wasn't there in the first place

@BSFishy BSFishy mentioned this pull request May 22, 2023
6 tasks
@joshuarrrr joshuarrrr merged commit 18cc9df into opensearch-project:main Jun 27, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 27, 2023
Signed-off-by: Matt Provost <[email protected]>
Co-authored-by: Iskander Rakhmanberdiyev <[email protected]>
(cherry picked from commit 18cc9df)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuarrrr pushed a commit that referenced this pull request Jun 28, 2023
(cherry picked from commit 18cc9df)

Signed-off-by: Matt Provost <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Iskander Rakhmanberdiyev <[email protected]>
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.

5 participants