CodeForPhilly / clean-and-green-philly

Dashboard to target Philly vacant properties for anti-gun violence interventions
https://www.cleanandgreenphilly.org/
MIT License
31 stars 63 forks source link

A11y - Update header semantics #205

Closed bacitracin closed 6 months ago

bacitracin commented 9 months ago

Describe the task

The nav could use some semantic updates that will help screenreader users + keyboard navigation. Individual details under acceptance criteria.

Change from

<nav>
  <header>
    <ul>
      <div><a><img/><a></div>
    </ul>
    <ul>
      <li><a><button /></a>
    </ul>
  </header>
</nav>

to

<header>
  <div><a><img /></a></div>
  <nav aria-label="primary">
    <ul>
      <li><a /></li>
    </ul>
  </nav>
</header>
Screenshot A11y annotation ![Screenshot 2024-03-13 at 15 34 32](https://github.com/CodeForPhilly/vacant-lots-proj/assets/102739972/2e70ed0c-5825-4075-bcaf-bb0fd28124f3)

Acceptance Criteria

bacitracin commented 8 months ago

@markgoetz Heads up https://github.com/CodeForPhilly/vacant-lots-proj/issues/344 is in review, may or may not overlap with this ticket, haven't reviewed it yet. Tagged you as a reviewer on the PR https://github.com/CodeForPhilly/vacant-lots-proj/pull/388

marvieqa commented 7 months ago

Touch-based with @markgoetz, and this ticket is good to go back into circulation.

Amberroseweeks commented 6 months ago

Hello, @Moylena i'd like to be assigned this issue. I think we can resolve the semantic order by using the NEXT UI as property and rename the HTML tag and then achieve the correct heading structure.

Moylena commented 6 months ago

@Amberroseweeks assigned!

nlebovits commented 6 months ago

closed by #531, #539