Closed bacitracin closed 6 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
Touch-based with @markgoetz, and this ticket is good to go back into circulation.
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.
@Amberroseweeks assigned!
closed by #531, #539
Describe the task
The nav could use some semantic updates that will help screenreader users + keyboard navigation. Individual details under acceptance criteria.
Change from
to
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
<a>
tag. It's not valid HTML and also it messes with keyboard navigation. For example, you can TAB to the link element because of the tabIndex that was added to the<a>
, but because buttons are considered interactive elements, you can TAB to the button within the link as well. BUT the button can't be activated at all by pressing ENTER or SPACE (expected behavior). If this change to remove the button is a problem for some reason, you could get rid of the<a>
and only do the button if you addrole="link"
to it but the first way is best if you can swing it.~