-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Further landing accessibility improvements #330
Conversation
Also, this is more of an SEO thing, but according to lighthouse the page is also missing a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tropix126 mind posting screenshots of the following
- before/after lighthouse report
- before/after how the website looks
@Tropix126 nah, it's that pink tag. I think we can ignore WCAG 2.0 lies on that one :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR improves the following potential accessibility pitfalls on the site:
lang="en"
to<html>
which helps screenreaders correctly identify the site's language.<ul>
element to the navbar so their children<li>
s have valid semantic meaning.<li>
elements from benchmarks tabbar as ARIA requires thetablist
role's direct children to havetabitem
roles, making them redundant and potentially harmful to screenreaders. This also inadvertently fixes a regression with some missing selection styling introduced by fix a11y issues on landing #225.unselectable
class repetition from CodeBox and just slaps auser-select: none;
on it's base element to simplify things CSS-wise.removeshides the second potential instance.)