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: added aria-label and replaced SimpleGrid #425

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tkim602
Copy link

@tkim602 tkim602 commented Nov 4, 2024

I initially noticed some accessibility issues in features.tsx and section1.tsx and found out that revising only the section1.tsx can improve in the same way. The audit flagged two issues: 1. missing labels for form elements and 2. list structure issues due to items not being contained within

    and
      elements.

      The original code used for layout. I modified the code to utilize

        and
      • tags by setting component="ul" on . This change resolved the list structure issue.

        Additionally, I applied an aria-label to the JsonInput in section1.tsx. I guess since the mobile does not include the svg content, it did not impact the Lighthouse score on mobile. But it significantly improved accessibility on desktop, so I chose to leave it.

        I am submitting this pull request and would appreciate insights into managing such platform specific discrepancies in accessibility.

        Closes Accessibility Improvement: labels for form elements and proper list semantics #423

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.

Accessibility Improvement: labels for form elements and proper list semantics
1 participant