New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 620038 link

Starred by 4 users

Issue metadata

Status: Verified
Owner:
Not on Chrome
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug
Team-Accessibility



Sign in to add a comment

[a11y] opening any vertical dot menu loses focus position in page

Project Member Reported by dbeam@chromium.org, Jun 14 2016

Issue description

bugs: repro steps (I did X and expected Y but Z happened!)

1. open a more actions (i.e. vertical dot) menu at the end of a visit
2. close the menu (with copious Esc presses)

what do you expect?
well, I expected only 1 Esc to close the menu (like a context menu), but otherwise I also expected my focus position to return to where i was

what happened instead?
seems like document.body was made the active element instead?
 

Comment 1 by dbeam@chromium.org, Jun 14 2016

Status: Available (was: Untriaged)
Cc: nyerramilli@chromium.org tkonch...@chromium.org
 Issue 621033  has been merged into this issue.
Owner: tsergeant@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9

commit 9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9
Author: tsergeant <tsergeant@chromium.org>
Date: Wed Jul 13 05:55:57 2016

MD WebUI: Reimplement cr-shared-menu using iron-dropdown.

This change brings the implementation much closer to that of
paper-menu-button, and fixes a number of longstanding bugs. In
particular,

* Focus is correctly restored to the element which opened the menu after
  the menu is closed.
* It is only necessary to press escape once to close the menu.
* It is possible to close the menu by clicking anywhere else on the
  page.
* Tab focusing is trapped inside the menu, rather than allowing tab to
  go to a different part of the page.
* Bold text is no longer applied the menu item which was last clicked.

The main trade-off of this approach is that we now have to use neon-animation
to animate the menu out, and due to the way that the menu is positioned
it will animate in from the top-left corner (the same as
paper-menu-button).

BUG= 589362 , 603454 , 616074 , 619839 , 620038 
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2104013004
Cr-Commit-Position: refs/heads/master@{#405048}

[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/cr_elements/cr_elements_browsertest.js
[add] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/md_history/history_overflow_menu_test.js
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/compiled_resources2.gyp
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.js

Project Member

Comment 5 by bugdroid1@chromium.org, Jul 13 2016

Labels: merge-merged-2795
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9

commit 9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9
Author: tsergeant <tsergeant@chromium.org>
Date: Wed Jul 13 05:55:57 2016

MD WebUI: Reimplement cr-shared-menu using iron-dropdown.

This change brings the implementation much closer to that of
paper-menu-button, and fixes a number of longstanding bugs. In
particular,

* Focus is correctly restored to the element which opened the menu after
  the menu is closed.
* It is only necessary to press escape once to close the menu.
* It is possible to close the menu by clicking anywhere else on the
  page.
* Tab focusing is trapped inside the menu, rather than allowing tab to
  go to a different part of the page.
* Bold text is no longer applied the menu item which was last clicked.

The main trade-off of this approach is that we now have to use neon-animation
to animate the menu out, and due to the way that the menu is positioned
it will animate in from the top-left corner (the same as
paper-menu-button).

BUG= 589362 , 603454 , 616074 , 619839 , 620038 
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2104013004
Cr-Commit-Position: refs/heads/master@{#405048}

[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/cr_elements/cr_elements_browsertest.js
[add] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/chrome/test/data/webui/md_history/history_overflow_menu_test.js
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/compiled_resources2.gyp
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html
[modify] https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9/ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.js

Status: Fixed (was: Assigned)
Closing the menu will now return focus to the menu button which opened it.
Status: Verified (was: Fixed)
verified on 56.0.2903.0

Sign in to add a comment