? ? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
10 May 2020

Pull Request for Issue #28840

Summary of Changes

Added the max-width to the closed items and created a style where the menu titles appear like small badges, not intefering with navigation on the right side.

Testing Instructions

Apply patch
npm run build:css
Check if you can navigate on the dashboards even if coming close to the closed menu

Expected result

Navigation works and you still can see what the icons mean.

Actual result

If you come too close the the closed menu you can't navigate on the items behind, see the linked issue

grafik

avatar coolcat-creations coolcat-creations - open - 10 May 2020
avatar coolcat-creations coolcat-creations - change - 10 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2020
Category Administration Templates (admin)
avatar ciar4n
ciar4n - comment - 10 May 2020

I get the following when closing the sidebar if a dropdown is open..

PktbrSRm2U

avatar brianteeman
brianteeman - comment - 10 May 2020

I can confirm @ciar4n findings. As soon as you expand a sidebar menu icon it breaks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar brianteeman brianteeman - test_item - 10 May 2020 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 10 May 2020

I have tested this item ? unsuccessfully on 81de1ab


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar coolcat-creations
coolcat-creations - comment - 10 May 2020

Thank you for the findings, I will work on it.

avatar brianteeman
brianteeman - comment - 10 May 2020

mods

avatar ciar4n
ciar4n - comment - 10 May 2020

I will work on it.

Not easy... the sidebar CSS is a cascade minefield

avatar brianteeman
brianteeman - comment - 10 May 2020

Interesting approach to the problem with gmail

mods

avatar ciar4n
ciar4n - comment - 11 May 2020

Interesting approach to the problem with gmail

We tried something like that before.... joomla/40-backend-template#321. I dont know why it was changed.

avatar brianteeman
brianteeman - comment - 11 May 2020

I think thats going to be the only option

avatar ciar4n
ciar4n - comment - 11 May 2020

@wilsonge @coolcat-creations Will I re-implement joomla/40-backend-template#321 ??

This would remove the toggle item.

avatar coolcat-creations
coolcat-creations - comment - 11 May 2020

I am not sure, there is a problem in both possibilities. What to do with the opened menus?

avatar ciar4n
ciar4n - comment - 11 May 2020

What to do with the opened menus?

My guess would be the menu would always remain closed unless hovered/focused

avatar coolcat-creations
coolcat-creations - comment - 11 May 2020

For me personally thats not an option I am using the mouse very often and fast, when I have to navigate into the deeper menu everytime from new that would drive me crazy in my daily workflow. We need maybe more opinions here.

avatar ciar4n
ciar4n - comment - 11 May 2020

My apologies... i wasn't thinking straight. The toggle button can remain.

avatar coolcat-creations
coolcat-creations - comment - 11 May 2020

Ok, would be great if you could implement that behaviour again then :-)

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

@ciar4n if you're about to restore that PR can you also remove this metis.js (or whatever the name is)?

avatar ciar4n
ciar4n - comment - 11 May 2020

@dgrammatiko That is the accordion script right?

avatar richard67
richard67 - comment - 11 May 2020

Metismenu .. whatever it is good for. I think @brianteeman knows what it is.

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

@dgrammatiko That is the accordion script right?

@ciar4n don't ask me you've pulled it in ?

avatar ciar4n
ciar4n - comment - 11 May 2020

Yea so it was... added here... #22587

It is not as simple as just removing it. It will have to be replaced with something.

  1. Bootstrap collapse (difficult to get working with all the nuances of the menu).
  2. Write our own JS script (not in my skillset - @dgrammatiko you are welcome to try ? )
  3. CSS only solution. Means rewriting this again (for the 10th time). Won't be animated. Questionable if a11y.
avatar brianteeman
brianteeman - comment - 11 May 2020

What is the reason for removing it. Seems like a pointless task to me that just halts progress

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

@ciar4n you need JS if only for the accessibility part

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

Seems like a pointless task to me that just halts progress

The original PR joomla/40-backend-template#321 also didn't had metismenu...

avatar ciar4n
ciar4n - comment - 11 May 2020

At the time of that PR the menu used boostrap collapse. As far as i remember it wasn't bug-free nor a11y compliant?

I get flak for adding metismenu but it was the only working solution I could implement. Someone proficient in JS is more than welcome to replace it with something else.

avatar wilsonge
wilsonge - comment - 11 May 2020

metismenu is fine. it solves all our accessibility requirements. The commit came from the template v2 work wilsonge@6838f48 .

@brianteeman is the google solution a11y compliant to the best of your knowledge? I guess specifically are the hover effects are going to be compliant with keyboard support?

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

it solves all our accessibility requirements

You must be joking right? None of the arrow keys are working with the menu atm, so quite honestly it's not even close...

Just for ref: https://stackoverflow.com/a/26300120/2302165

avatar brianteeman
brianteeman - comment - 11 May 2020

And they should not work. What you are referring to is a menu like ms word. This is a navigation which is a collection of links. All the major people in the accessibility world agree that the "draft authoring practice example" which everyone refers to is just plain wrong.

See https://adrianroselli.com/2017/10/dont-use-aria-menu-roles-for-site-nav.html

..., please understand that the WAI-ARIA Authoring Practices is a note, not a specification. It is not a standard. It is the output of an opinionated set of editors

avatar brianteeman
brianteeman - comment - 11 May 2020

Also see this twitter thread just last week
https://twitter.com/brucel/status/1255858468671684613

, bottom line is: navigation menus are for links, and menuitems aren't links.

avatar coolcat-creations
coolcat-creations - comment - 11 May 2020
avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

@brianteeman what you did was to take the recommendations for a simple menu (eg one level, few items) and applied to this mega menu. I'm sorry you're wrong, tabbing is OK only for small menus: https://webaim.org/techniques/keyboard/

avatar brianteeman
brianteeman - comment - 11 May 2020

@coolcat-creations please read the blog post and you will see the answer.

@dgrammatiko no I listened to the leading accessibility experts and took their advice.

avatar dgrammatiko
dgrammatiko - comment - 11 May 2020

@brianteeman I'm not saying to use the menu I'm just stating that is expected for big menus the arrow keys to work...

avatar brianteeman
brianteeman - comment - 11 May 2020

Again. You are just wrong.

avatar wilsonge
wilsonge - comment - 11 May 2020

@coolcat-creations thats a jQuery plugin menu - i'd rather stick with the one we have which doesn't have the jQuery dependency. This menu is just fine

@brianteeman from your perspective is the google solution is a11y from a keyboard support perspective? If so then sure we can drop the toggle button. I assumed it was required for keyboard support

avatar brianteeman
brianteeman - comment - 11 May 2020

@wilsonge I cant tell just from an image of @ciar4n proposal

avatar brianteeman
brianteeman - comment - 11 May 2020

Alternative two line solution to fix the reported issue at #29035

avatar brianteeman
brianteeman - comment - 11 May 2020

@coolcat-creations I can see where the problem is with your solution. Before this PR when the sidebar is closed it is always collapsed but for some reason with this pr the menu isnt collapsing resulting in the issue @ciar4n reported.

avatar coolcat-creations coolcat-creations - change - 12 May 2020
Labels Added: ?
avatar coolcat-creations
coolcat-creations - comment - 12 May 2020

@brianteeman @ciar4n I fixed the issue with the open items, personally I think designwise it's more harmonic to have the smaller labels. They are just a reminder what the icons mean... everyone else can use the expanded menu.

avatar brianteeman
brianteeman - comment - 12 May 2020

Definitely agree that the current labels are way too big ;)
Would be interesting to hear from the accessibility team if there are any issues with the label "floating" visually separated from the icon. Otherwise sounds good to me.

avatar infograf768
infograf768 - comment - 12 May 2020

This is hardly readable here:
Screen Shot 2020-05-12 at 10 36 22

avatar brianteeman brianteeman - test_item - 12 May 2020 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 May 2020

I have tested this item successfully on 3a9392d

I am marking this a successful although personally I think the font is too small I am not a designer


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar coolcat-creations
coolcat-creations - comment - 12 May 2020
a28cc04 12 May 2020 avatar coolcat-creations CS
avatar infograf768
infograf768 - comment - 12 May 2020

Looks fine now

avatar coolcat-creations
coolcat-creations - comment - 12 May 2020

Thank you all!

avatar infograf768 infograf768 - test_item - 12 May 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 12 May 2020

I have tested this item successfully on a28cc04


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar infograf768 infograf768 - change - 12 May 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 12 May 2020

rtc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar coolcat-creations coolcat-creations - change - 12 May 2020
Labels Added: ?
avatar Quy
Quy - comment - 12 May 2020

Maybe make the background dark blue since it is not readable in this case.

29023

avatar infograf768 infograf768 - change - 13 May 2020
Status Ready to Commit Pending
avatar infograf768
infograf768 - comment - 13 May 2020

Back to pending until new tests and reply to suggestion.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar coolcat-creations coolcat-creations - change - 13 May 2020
Labels Removed: ?
avatar coolcat-creations
coolcat-creations - comment - 13 May 2020

Removed the opacity reduction, I thought it would be nice to see a bit through but I can understand if someone has issues reading it. Please retest... @Quy @infograf768 @brianteeman please retest.

avatar infograf768 infograf768 - test_item - 13 May 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 13 May 2020

I have tested this item successfully on 710edc7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar infograf768
infograf768 - comment - 13 May 2020

I have tested this item successfully on 710edc7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar Quy Quy - test_item - 13 May 2020 - Tested successfully
avatar Quy
Quy - comment - 13 May 2020

I have tested this item successfully on 710edc7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar Quy Quy - change - 13 May 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 13 May 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29023.

avatar wilsonge wilsonge - change - 13 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-13 16:17:05
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 13 May 2020
avatar wilsonge wilsonge - merge - 13 May 2020
avatar wilsonge
wilsonge - comment - 13 May 2020

Thanks!

Add a Comment

Login with GitHub to post a comment