Focus navigation is not seen properly on Gear icon options
Reported by
pranjali...@etouch.net,
Aug 10
|
|||||||
Issue descriptionChrome version : 70.0.3517.0 (Official Build) 40b8dc74d4eba316ce85e7c7cb5cac598d17069d-refs/branch-heads/3517@{#1}(32/64 bit) OS: Win(7,8,8.1,10) , Linux(14.04 LTS) and Mac(10.12.6 , 10.13.1 , 10.13.6 , 10.14). Pre-condition: Enable the flag 'Enable using the Google local NTP' , 'New Tab Page Background Selection' and 'New Tab Page Custom Links' flags from chrome://flags/ page. What steps will reproduce the problem? 1.Launch chrome and open NTP. 2.First add shortcut by clicking on 'Add shortcut' thumbnail. 3. Add background theme from 'chrome backgrounds' from gear icon options. 4. Again click on Gear icon and press tab key (such that focus travel through all options) and observe. Actual : Focus navigation is not seen properly on Gear icon options Expected: Focus navigation should be seen properly on Gear icon options This is Non-Regression issue seen from ‘M-70’ as 'Restore default shortcut' option has been introduced from build #70.0.3509.0
,
Aug 13
Hi @yyushkina, Yes, the reporter here is referring to the issue that the tab focus starts from "Upload an image" option instead of 'Chrome backgrounds'. Thank you..!
,
Aug 13
The first menu item can be disabled if the user is offline, but 'Upload an image' is always available, so it is selected for default focus. I agree it would be nicer if the first item is tabbed to first. Weilun - can you take a look? The easiest way to simulate offline mode is in the Network tab of Developer tools, where there's an 'Offline' checkbox.
,
Aug 13
,
Aug 13
So the real problem for this bug is, the first option(custom background for online, upload image for offline) is already selected by default but it's not showing the focus ring because you are using mouse nav mode. Then, if you use any arrow key or tab, you will go to the next option wrt the key you hit. Should I only fix the tab key to make it focus on the first option or all keys?
,
Aug 14
Ah I see. So really this is actually the right behavior. We don't want to show visual focus if the user is using mouse nav. I think this is a "won't fix".
,
Aug 14
I can fix it by checking if it is the mouse nav mode or not. If it is then I focus the first option. If it is already in keyboard nav mode, then go to the next option. The question is do we want to do that?
,
Aug 14
Ah I see. That could work. So basically: so to recap if the user enters the gear through mouse nav, and then switches to keyboard and presses tab or down key then we focus the first option rather than the second (maybe also consider doing this if a user presses enter but make sure it doesn't "flicker"). Can you make sure this doesn't introduce any visible latency? I don't think it's worth doing if it does.
,
Aug 14
For me as least, there isn't any visible latency with the change. Please see the screenshot from both the gLinux and the MacOS. Screencast: gLinux: https://screencast.googleplex.com/cast/NTY0MTM4MTM4NTA3NjczNnxkMzNkOTFjNS01NA MacOS: https://screencast.googleplex.com/cast/NDg0Mjg2MTcwMjkzODYyNHxiOWMzMDEzMC1kNg
,
Aug 14
Looks good!
,
Aug 14
,
Aug 15
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/cdf5fa71178384ea4f58bb9bc9bcc9399c3b8548 commit cdf5fa71178384ea4f58bb9bc9bcc9399c3b8548 Author: Weilun Shi <sweilun@chromium.org> Date: Wed Aug 15 19:08:01 2018 [NTP] When using tab on edit dialog, focus on first available option Fixing the focusing issue when mixing up both keyboard navigation mode and mouse navigation mode. Focus on the first available option when we are on the mouse navigation mode but use tab or arrow key at the first time. Bug: 873071 Change-Id: I0a18ac3a92bff9eafef5788b4ced5755d4fa196e Reviewed-on: https://chromium-review.googlesource.com/1173754 Reviewed-by: Kristi Park <kristipark@chromium.org> Commit-Queue: Weilun Shi <sweilun@chromium.org> Cr-Commit-Position: refs/heads/master@{#583347} [modify] https://crrev.com/cdf5fa71178384ea4f58bb9bc9bcc9399c3b8548/chrome/browser/resources/local_ntp/custom_backgrounds.js
,
Aug 15
,
Aug 16
Update: Rechecked above issue on Win(7,8,8.1,10) , Linux(14.04 LTS) and Mac(10.12.6 , 10.13.1 , 10.13.6 , 10.14) using latest canary build #70.0.3524.0 and issue is fixed. please refer attached screencast for reference. Thank You.
,
Aug 22
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by yyushkina@chromium.org
, Aug 10