Closed (fixed)
Project:
Olivero
Component:
Proof of Concept
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Oct 2019 at 23:36 UTC
Updated:
26 Nov 2019 at 15:44 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
MaddieC commentedComment #3
mherchel@MaddieC Unassigning you, as I don't want to hold up this issue if other people want to work on this. If you have work, please create a PR within the proof of concept repo on github. Also ping me in Drupal Slack (#d9-theme channel) if you need assistance!
Comment #4
MaddieC commentedHello @mherchel,
Sorry for the late pull with the code. I have made a PR on the proof of concept repo: https://github.com/Lullabot/olivero-poc/pull/7
Comment #5
mherchelLooks great. Merged PR. Thank you!
Comment #6
andrewmacpherson commentedThis is still broken. The problem is you're trying to treat the visual reading order differently in the narrow and wide breakpoints.
The screenshots in the issue summary show the problem in the wide breakpoint. It was a failure of WCAG "Focus order".
The solution in #4 wasn't very robust though. This needs to work at both breakpoints.
I Just checked the tab order in the menus, on the current PoC. The tabbing order of the login and signup buttons is mixed between the different breakpoints.
Wide breakpoint: the tabbing order is good. Contact > searchbutton > login > signup
Narrow breakpoint: the tabbing order is wrong. It should go: contact > signup > login. The culprit is
.secondary-nav ul {flex-direction: row-reverse;}Recommend: Make the tabbing order match the visual reading order in both cases. The safest way is to make both of these follow the DOM order. Beware of flexbox direction overrides when there are interactive children; it's a very fast route to a WCAG level A failure. Use of tabindex attributes is definitely not appropriate here.
The problem stems from designs which show the login and sign-up buttons in the opposite reading order at different breakpoints. I can't see a good reason why this is necessary. The PoC has just 2 links in the secondary nav. This will bite you when CMS authors start adding more links.
Comment #7
fhaeberleI outlined a solution in one of my commits.

The visual solution of this looks like this:
I took into account what @andrewmacpherson said and tried to find a good solution. Aligning the button to the right and fixing the focus order to follow the dom order is in my opinion a really good fix for the problem.
https://github.com/Lullabot/olivero-poc/pull/13
Comment #8
mherchelThanks for this, requested changes at https://github.com/Lullabot/olivero-poc/pull/13#issuecomment-552447228
Comment #9
markconroy commentedHere's some links to Umami issues where we had similar issues to solve
#2983568: Audit and improve focus styles across the Umami theme for logged out users
#2977510: Refactor/improve Umami demo's search form CSS for better responsive support
Comment #10
shaalSimilarly to what I wrote in #3090563: Convey behaviour of navigation submenu to assisitive tech.
In OOTB Umami, we used 2 separate markups for desktop/mobile menus. Would that resolve the issue here as well ?
Comment #11
andrewmacpherson commentedUmami isn't wrapping 2 menus and a search block.
Comment #12
MaddieC commentedSeeing that Jen said that we can keep the order on the mobile as on the desktop. Can't we just do that? Without the need for 2 separate markups for desktop/mobile?
Comment #13
fhaeberleUpdated my pull request. But in the meantime the conversation went to like restructuring the menu? We now simply show the secondary nav on desktop and mobile in the same order.
Comment #14
mherchelThanks! Added one more comment on the changes :)
https://github.com/Lullabot/olivero-poc/pull/12#pullrequestreview-315621997
Comment #15
mhercheldisregard the previous comment (it was for another issue). This looks good! Merging!