-
Notifications
You must be signed in to change notification settings - Fork 6
[new design] Pen for new sidebar #365
Comments
I am not on the a11y team and you should really ask them to check. All the markup for the menu fails a11y in general see joomla/joomla-cms#19763 but its been 16 days since the promised answer I am not sure if the html is the proposed markup or just for demo but at a minimum this needs fixing And you should check the shades of blue used here https://webaim.org/resources/contrastchecker/ |
I am trying to figure out how the plus sign/button will work with keyboard. Let me explain: the left/right arrow keys are supposed to move you to the previous/next root menu (unless there is a deeper ul). Now we end up with only one li tag and 2 a tags inside. I think this should be a li for the name and the plus sign should be a ul/li/a. That way we can keep the expected menu behaviour for keyboard users. (please keep in mind that complying to A11Y is not just making some tab keys follow the menu, it's far more complicate than that, check the link I posted above) |
yes i think you are correct - the plus is another level |
@C-Lodder Kinda tricky one this. It is due to the 2nd level items been absolute positioned taking them out of the flow of the page. Not sure if there is a CSS only solution. @brianteeman I've posted to the a11y glip channel
So I guess any 3rd level menu items on this menu will display as an icon inline to the 2nd level items? Icon set by the menu item class name? |
Please post on a public forum like github and not a private channel. They might actually do something then |
not necessarily, I mean the plus button should still be the a tag, so it's more about playing with classes and some js to get it in the same level. But anyhow I'm neither an expert of A11Y, all I wanted to point out is that menus are extremely complicated in the keyboard behaviour (if we really mean to be accessible and not do what bootstrap is doing with their component tabs 😂) |
@brianteeman there is an issue in their repo: joomla/accessibility#35 so I guess the valuable feedback will be posted there |
So I guess the first concern is what markup to use for the child menu items that have a secondary link (plus icon). Currently we have...
It is suggested this should be...
This is very much an a11y question so we can wait a while for some recommendations from the accessibility team. @joomla/joomla-accessibility-team-jat From a CSS perspective both options can be made work. |
I thought some more about should the plus be another level. I was thinking it should be because my head was still in j3 mode. In reality "articles" and "new article" are the same level. they are just displayed differently |
Not necessarily. "Articles" is a link to the article list. "New article" (+) is a link to a subpage. In the hierarchy, it is a link to a subpage. But I agree that it is possible to put them on one level. |
Pen has been updated in line with suggestions by @zwiastunsw here joomla/accessibility#35 (comment) https://codepen.io/littlesnippets/pen/4d7312648363235a6b1c9ed9a8df64cf |
|
@zwiastunsw - The
This does not make sense at all:
as it will display the icon and text on screen readers only. |
@C-Lodder: What you have written does not really make sense. I did not suggest to use |
@zwiastunsw thats what you wrote in point 2 above |
I apologise, if that is not clear. I have not written in point 2: |
What it should be is
|
Oh, I can understand. My mistake. It should be: |
no that doesnt hide the icon. It should be exactly what I wrote |
You are right. But you don't have to hide this icon. Screen readers will not see it. |
Thats not globaly true. Many screen readers will see it and fontawesome themselves state that you should hide it |
I have to agree with you :) |
I know - I already did all of this for J3 ;) |
Re
Isnt the objective here to hide the list from the dom when the menu item is collapsed. In which case it is correct for the tree to have aria-hidden=true when it is collapsed and set to false when it i expanded |
I agree. |
I will withdraw point 5 from my suggestions for the time being and I have to think about that. |
@brianteeman You've nested the span and added Thinking semantically here, shouldn't it be done as shown here? #365 (comment) |
yes - sorry - need more coffee |
Pen amended as suggested..
https://codepen.io/littlesnippets/pen/4d7312648363235a6b1c9ed9a8df64cf |
This visual issue should be largely amended |
At this moment it is very good for me. I have access to all items only from the keyboard. Screen reader announces each item to me (NVDA, ChromeVox). |
Title attribute added as suggested. I believe that finishes the markup. Thank you @zwiastunsw @brianteeman @dgt41 @C-Lodder for the help on this. Good work 👍 @dgt41 I'll hand this over to you to work your magic |
So here we go: https://codepen.io/dgt41/pen/jzLGaG ATM there are some changes that need to be done in the HTML (sorry, didn't catch those earlier)
Refer to https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html to check the keyboard functionality and post back what is not working |
First, nice implementation. |
@ylahav the keyboard arrow keys can be switched. What I don't know is if that breaks accessibility as what is defined in the W3C document as expected behaviour is what we're currently doing. For me (JS implementation) will be a simple change in the key values but I'm not the one to decide on the behaviour... |
100% we should be doing what it says in the documentation and not applying our own ideas |
As requested by @dgt41 I've created a pen for the new sidebar based on the design by @svom @coolcat-creations https://www.dropbox.com/s/jlgncxdggip22rh/Joomla4-031217-lj-white.pdf?dl=0.
CSS is rewritten from scratch and is standalone (non BS dependent). The intent is to use this to create the custom element.
Sidebar pen for review: https://codepen.io/littlesnippets/pen/4d7312648363235a6b1c9ed9a8df64cf
An a11y review would be appreciated as not at all my forte (@joomla/joomla-accessibility-team-jat, @brianteeman).
The text was updated successfully, but these errors were encountered: