-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
a11y quick wins: Having landmarks for pages/components #149
Comments
I tried the following fixes, it worked:
- <div class="jumbo">
+ <div class="jumbo" role="banner">
- <div class="rentals">
+ <div class="rentals" role="main"> @MelSumner Your thoughts? |
Also for the Rentals component, we can go for the semantic component instead of a
- <div class="rentals">
+ <main class="rentals"> |
Assuming @MelSumner is +1, seems good to me. Same with #148 (comment), we should be making the changes in the source along with brief explanation. Something like this: "... Since this is going to be the main content of the page, we also gave it the "main" ARIA role to help assistive technologies comprehend our page." |
Ah sorry I didn't see your second comment, I agree it's a better idea to use the |
--- Commit: ember-learn/super-rentals-tutorial@a92fddd Script: https://github.com/ember-learn/super-rentals-tutorial/blob/a92fdddfa44a3d12a405e0c4bbe7974bf9e4251f/.github/workflows/build.yml Logs: https://github.com/ember-learn/super-rentals-tutorial/commit/a92fdddfa44a3d12a405e0c4bbe7974bf9e4251f/checks
--- Commit: ember-learn/super-rentals-tutorial@a92fddd Script: https://github.com/ember-learn/super-rentals-tutorial/blob/a92fdddfa44a3d12a405e0c4bbe7974bf9e4251f/.github/workflows/build.yml Logs: https://github.com/ember-learn/super-rentals-tutorial/commit/a92fdddfa44a3d12a405e0c4bbe7974bf9e4251f/checks
While running through the axe Audit plugin in Chrome I came across these two moderate issues:
1. Document must have one main landmark
2. All page content must be contained by landmarks
The text was updated successfully, but these errors were encountered: