[NTP] Focus get lost from 'Add shortcut' icon.
Reported by
dchau...@etouch.net,
Aug 14
|
||||||||||||
Issue descriptionChrome Version: 70.0.3521.2 (Official Build) Revision eace06098e75dd5b54de82024208123fc1a51350-refs/branch-heads/3521@{#5} (32/64-bit) OS: Windows(7,8,8.1,10), Mac(10.12.6, 10.13.1, 10.14, 10.13.6) and Linux(14.04 LTs). Pre-condition: Enable "Enable using the Google local NTP" and "New Tab Page Custom Links" flags from chrome://flags. What steps will reproduce the problem? 1. Launch Chrome and navigate to NTP. 2. Click on 'Add shortcut' icon to open 'Add shortcut' overlay. 3. Press 'Esc' key from keyboard or click on 'Cancel' button and observe the focus. Actual: Focus get lost on pressing 'Esc' key. Expected: Focus should be seen on 'Add shortcut' icon. This is a non-regression issue, seen from M-69 series as 'Add shortcut' icon is introduced from build #69.0.3497.0 NOTE: This issue is also reproducible on Beta #69.0.3497.32 and Dev #70.0.3514.0 Kindly review the attached screen-cast for reference. Thank you. Note: this issue applies not just for the "Add shortcut" icon but to any of the shortcuts.
,
Aug 14
,
Aug 14
Another loss of focus issue to tackle along with this one: after a user adds, edits or deletes a shortcut we should move focus to the "Undo" portio of the messaging UI that communicates what the user did.
,
Aug 14
,
Aug 14
,
Aug 14
An addition to c3: and then (after the messaging UI goes away) ideally focus would move to the next shortcut instead of being lost.
,
Aug 23
So, the expected behavior is: (1) After a user adds, edits or deletes a shortcut, the focus should move to "Undo" button in the message bar. (That is doable) (2) After the message bar goes away, the focus will move to next shortcut. (What will be the next shortcut?)
,
Aug 27
With response to comment #7 : After dismissing the 'Add shortcut' overlay focus should be seen on 'Add shortcut' thumbnail.
,
Aug 27
+Yana: What do you think regarding Weilun's question (2) in #7? Options: 1. No focus 2. Add Shortcut 3. Omnibox (default for a newly opened NTP)
,
Aug 27
Moving focus to Add shortcut SGTM. So to recap: After a user adds, edits or deletes a shortcut, the focus should move to "Undo" button in the message bar. Then, after the message bar is dismissed or goes away on its own, we should move the focus to "Add shortcut". However, please note that in line with c8, if a user dismisses the edit dialogue without saving, we should keep the focus on either the associated link or the three-dot menu for the dialogue that was just dismissed - whichever is easiest. And if a user dismisses the add dialogue without saving, we should show the focus on the Add shortcut thumbnail.
,
Aug 27
For what we have discussed during the meeting. If we want to focus on the three dot menu after the cancel button was clicked, there will be a focus ring on the three dot menu even when we use mouse-navigation. Are we sure about this?
,
Aug 27
,
Aug 28
The second part of c10 has been already done. However, move the focus point to add shortcut tile is not trivial, because hitting undo/restore button on the notification bar will cause that iframe to reload which is the same behavior as the init render. That means if we focus any components on the mv-single iframe, the focus will disappear after reload.
,
Aug 28
Update c11 that the focus ring will only appear if you hit enter key on the cancel button, but not for mouse navigation.
,
Aug 29
@Yana: Weilun's looking for feedback on c#13. It's not trivial to focus on a specific custom link after hiding the notification bar - even if that's the 'Add Shortcut' link (because the mv-single iframe will be reloaded after any change on backend). Does it make sense to split this into two, s.t. the first part can land, or would a different focus area work?
,
Aug 29
We can definitely land this in two. Wrt a different focus area, I suppose what we could in that case is focus on the omnibox. It's not ideal but better than losing focus altogether. @c11: that's ok to me as long as it's for keyboard navs only
,
Aug 29
,
Sep 5
,
Sep 5
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f107e6c78054dca34047d4a029f92b9d3bff7177 commit f107e6c78054dca34047d4a029f92b9d3bff7177 Author: Weilun Shi <sweilun@chromium.org> Date: Wed Sep 05 02:18:04 2018 [NTP] Focus on undo button when notification bar float up When the custom link tile gets modified(add/edit/delete), focusing on the undo button on the notification bar. Using tab on undo button can navigate to restore button as well. Bug: 873978 , 865840 Change-Id: Idf8420d3622e645e8980fc40be5682028daf8638 Reviewed-on: https://chromium-review.googlesource.com/1188492 Reviewed-by: Kristi Park <kristipark@chromium.org> Commit-Queue: Weilun Shi <sweilun@chromium.org> Cr-Commit-Position: refs/heads/master@{#588741} [modify] https://crrev.com/f107e6c78054dca34047d4a029f92b9d3bff7177/chrome/browser/resources/local_ntp/custom_links_edit.js [modify] https://crrev.com/f107e6c78054dca34047d4a029f92b9d3bff7177/chrome/browser/resources/local_ntp/local_ntp.js [modify] https://crrev.com/f107e6c78054dca34047d4a029f92b9d3bff7177/chrome/browser/resources/local_ntp/most_visited_single.js
,
Sep 6
Update: Rechecked this issue on Windows(7,8,8.1,10), Mac(10.12.6, 10.13.1, 10.13.6, 10.14) and Linux(14.04) machines using latest Canary #71.0.3544.0 and issue is fixed. Hence adding TE-Verified labels. please refer the attached screen-cast for reference. Thank you.
,
Sep 10
,
Sep 13
Note: the fix here caused issues so we're modifying it to only refocus on the omnibox if the user explicitly clicks on the Undo or Restore All. See crbug.com/882335
,
Oct 9
Reassigning to add to remote NTP
,
Nov 9
|
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by yyushkina@chromium.org
, Aug 14Labels: -Pri-2 Pri-3
Owner: sweilun@chromium.org