Problem/Motivation
Testing with https://accessibilityinsights.io and their Ad hoc tools, the Landmarks widget identified that the ARIA landmarks are missing around some of the content on the main page.
"Contain all visible content within the landmark areas.
Turn on the Landmarks visualization, then zoom out so you can see the entire page. If you see any visible content (like text, images, or controls) outside the dashed borders, that’s a failure."
The Main content isn't in a region.

The Recipes title isn't either. Although the main region is visible for the list of recopies:

Missing Footer. This probably should have a <footer> tag rather than just a series of div's too.

Steps to reproduce
Open any Umami page, notice that some regions are not placed inside landmark regions.
Proposed resolution
Make sure all Drupal regions are inside landmarks - header, footer, main.
Remaining tasks
Move code in page.html.twig around a little to make sure header and footer items are inside the header/footer landmarks and that all other content is inside a 'main' landmark
Update the CSS to reflect this new mark up.
User interface changes
None
Introduced terminology
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2019-04-24 at 2.34.00 PM.png | 505.15 KB | mgifford | |
| Screen Shot 2019-04-24 at 2.34.13 PM.png | 823.79 KB | mgifford | |
| Screen Shot 2019-04-24 at 2.34.31 PM.png | 884.46 KB | mgifford |
Issue fork drupal-3050559
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3050559-umami-home-page
changes, plain diff MR !8676
Comments
Comment #2
mgiffordComment #3
mgiffordComment #12
mgiffordComment #14
markconroy commentedI'm working on this.
---
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #16
markconroy commentedHi @mgifford
Can you have a glance at this please?
The MR moves tabs/highlighted/content-top/etc all inside the
<main>element. And then amends the CSS to target a new container I created inside this called -.main-content-areaso that sidebars, etc continue to work.However, I am not sure if it's best for us to move all those items inside
<main>or if, perhaps, we should create a new<section>above<main>and place them in there instead.Thanks very much!
---
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #18
finnsky commentedFixed footer which was reported for me by Axe devtools.
Comment #19
markconroy commentedThanks @finnsky
I've made some amends to your fixes.
Moved the
.footerclass back to the<footer>elementSet
.layout-footerclass to use the CSS that was targetting.footerI think this is looking pretty good now.
===
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #20
smustgrave commentedWas hoping someone with better eyes would pick this one up.
But could the issue summary be updated to use the standard template. Like what regions are being fixed, how? (see its rearranging all the page.html.twig?)
May help the reviewer. If no one can get to it though I'll try and give it my best shot.
Comment #21
markconroy commentedComment #22
markconroy commentedIssue summary updated, moving back to 'Needs review'.
---
Thanks to The Confident for sponsoring my time to work on this.
Comment #23
smustgrave commentedNot sure if I'm testing wrong but using Accessibility insight and Landmark navigation I'm not seeing any different with the MR applied or not?
Comment #24
smustgrave commentedThink I was able to see the change with Landmark navigation? But leaning more on the code changes and that moving everything into main /footer region appears correct.
Regular visual check nothing seemed to break. Going to say it's probably good.
Comment #25
nod_small update regarding role=main, we can simplify/fix it while we're at it.
Comment #26
finnsky commentedComment #27
smustgrave commentedAppears functional test was a random failure, re-running it's all green
Feedback around the role removal has been addressed.
Comment #30
nod_Committed d86a0ee and pushed to 11.x. Thanks!