Comments

flocondetoile created an issue. See original summary.

flocondetoile’s picture

Status: Active » Needs review
StatusFileSize
new1.59 KB

This patch add basic support for keyboard navigation. At least, visually impaired can now use the toolbar menu.

eme’s picture

Maybe you could work together with #2886151: Make toolbar work with a keyboard ?

smustgrave’s picture

@flocondetoile I feel your solution is much much better than mine. I made a small tweak to enable backward tabbing through the menu items. I'm attaching an interdiff I believe I did this right.

adriancid’s picture

StatusFileSize
new2.85 KB

rerroling against the last dev

adriancid’s picture

StatusFileSize
new2.66 KB

Rerroling against the last dev.

Somebody can explain me how can I test this functionality? I tried with tab in the menu but nothing happens, the only think that I see is the menu item in green once you made click in a menu item.

smustgrave’s picture

I haven't had a chance to test this patch yet. But to test you should be able to tab through all the menu items with the keyboard just as you can with a mouse. With clear indication where the focus currently is.

adriancid’s picture

Hi @smustgrave, for me it doesn't work, I'm not able to use the tab with the menu, can you check this later, please? We are planning to release a new version soon and will be great if we can include this issue.

smustgrave’s picture

StatusFileSize
new2.79 KB

Made some tweaks and it appears to be working for me now. Used Drupal 8.4 core and 8.x-1.20 version of admin_toolbar.

Status: Needs review » Needs work

The last submitted patch, 9: admin_toolbar-accesible_keyboard-2873228-9-D8.patch, failed testing. View results

smustgrave’s picture

I was able to apply the patch cleanly on my local environment. I don't understand the drupal tester well enough to know what the issue was. Apologies

adriancid’s picture

StatusFileSize
new55.75 KB
new2.84 KB

@smustgrave I'm rerroling against the last dev.

In firefox 56 is not working and is working in chrome 61.

And I'm having the following issue: Try to drag a menu item out of the menu with the mouse and then go with the mouse over another menu item, you will see something like this.

problem

smustgrave’s picture

I can look into this in a few hours but I can confirm I'm seeing the error you mentioned. As far as FF goes it seems to work for me.

smustgrave’s picture

Hopefully this addresses the issue you saw.

smustgrave’s picture

Status: Needs work » Needs review

adriancid’s picture

Still not working in firefox, what is your firefox version?

smustgrave’s picture

Using 56.0.2 (64-bit)

adriancid’s picture

I have the same version in mac and it doesn't works, let's wait to see if another user can test the patch.

flocondetoile’s picture

StatusFileSize
new422.11 KB

Hi adriancid,

I met same issue on FireFox 56.0.2 on Mac OS Sierra.

But it's because, by default, the keyboard navigation on OS X is enabled only on textfield (and so all the links are not navigable).

You must enable the keyboard navigation on all the elements in your system preference
System preference >Keyboard > Shortcut and then check the option "All the controls" at the bottom of the pane (see screenshot attached).

With this setting, the patch works fine on Firefox 56 and the lastest Chrome.

adriancid’s picture

Merci @flocondetoile.

Now the other thing that I think that need a review is the mouse over color. Its fine the green or we need another color for this? I not very skilled in usability.

smustgrave’s picture

So the color contrast is perfect. One thing I noticed is say you start tabbing and the focus is on the 'Extend' tab it displays blue as expected. But if you over Structure or another tab that drops down the 'Extend' tab is still blue. I'm not sure if this is an issue, because the focus is still on the 'Extend' tab but the mouse is over something else.

adriancid’s picture

Status: Needs review » Needs work
StatusFileSize
new90.08 KB
new55.49 KB

I see two things.

1-. The menu arrow disappear once the menu is green.

no-arraow.png

2-. Strange behaviour (blink) when the mouse is in the position (see the image) and you are trying to use the tab to see the menu items.

blink.png

adriancid’s picture

Status: Needs work » Needs review
adriancid’s picture

adriancid’s picture

Status: Needs review » Needs work
smustgrave’s picture

1. Have a fix for the arrow disappearing. But this raises the question when the dropdown expands should we use the chevron-down.svg vs chevron-right.svg?

2. I'm not sure I understand the issue you mentioned.

adriancid’s picture

@smustgrave for:

1-. I think that chevron-right.svg is fine (as I says I'm not a usability expert).

2-. Put the mouse in the position (or near) indicated by the arrow and then use the tab to reach the options in the Structure menu and you will see the menu blinking.

smustgrave’s picture

StatusFileSize
new3.31 KB

Attached the fix for the first issue. Not able to reproduce the blinking issue though.

adriancid’s picture

Issue summary: View changes
StatusFileSize
new107.34 KB

@smustgrave works fine, to see the other issue just put the mouse pointer in the position indicated by the arrow and try to use the tab to navigate in the menu, you will see the problem.

arrow-p

adriancid’s picture

Issue summary: View changes
smustgrave’s picture

StatusFileSize
new2.81 KB

Hopefully this fixes the issue. I decided instead of using the 'focused' custom class just to reuse the hover-intent option that's already there. So when I held the mouse over the 'Comment Types' link or any link and started tabbing I noticed that nested expanded links were no longer showing.

adriancid’s picture

Status: Needs work » Reviewed & tested by the community

Great job @smustgrave, we are planning to revert this commit https://www.drupal.org/node/2908747#comment-12277530 on #2908747: Add a config to disable the hoverintent functionality if we revert the commit this will affect your last patch?

flocondetoile’s picture

yes. It's now the class hover-intent which is used to permit the keyboard navigation and not the initial class focused used. If hover-intent become optional, we have to use a specific class.

adriancid’s picture

Status: Reviewed & tested by the community » Postponed

@flocondetoile the commit is to allow the hovert-intent to be optional, but we will revert it (so will be by default in the module), in case that we revert the commit this patch will continue working?

I think that yes because you say that you use the hovert-intent and if we revert the commit the hover-intent will be always available, but I just asking the question because I'm not very skilled with jquery.

I just want to know that if we revert the patch that made overt-intent optional this patch will work fine. Maybe I will revert today the patch for the optional overt-intent .

flocondetoile’s picture

Status: Postponed » Reviewed & tested by the community

I misunderstood the question. Sorry

So yes, if the hover-intent is always available then this patch will work fine.

So revert back to RTBC.

  • adriancid committed fdf0b1f on 8.x-1.x authored by smustgrave
    Issue #2873228 by smustgrave, adriancid, flocondetoile: Toolbar menu...
adriancid’s picture

Status: Reviewed & tested by the community » Fixed

Well thanks to @all, this will be available in the next release, maybe for the next week ;-)

flocondetoile’s picture

Yeah! :-) Thanks @adriancid and @smustgrave

smustgrave’s picture

Glad we were able to get it working! This will go along way to getting this module adopted by government agencies (Which have to be 508).

adriancid’s picture

@smustgrave What is 508? And I have a question, is not better to use the arrows to move across the menu? If I need to go to the Reports menu I need to use a lot of tabs.

smustgrave’s picture

https://www.dhs.gov/compliance-test-processes

The current rule states that a tab has to be used. Arrows makes sense but it's not what someone with any motor disability would use first.

adriancid’s picture

@smustgrave do you think that we need to write something about this in the module description? In that case, can you write some words about this?

smustgrave’s picture

I can fully test it and emailsend you something

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.