Commit 995c1fac authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Label the more tabs button

When there are too many tabs to fit in the tab list, the button to see
more tabs was unlabeled.

Change-Id: Iadab77398a6bbf82d788d5a5e1cc0dc53ae1b589
Reviewed-on: https://chromium-review.googlesource.com/1188881Reviewed-by: default avatarAndrey Lushnikov <lushnikov@chromium.org>
Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586045}
parent 364fcc20
...@@ -560,6 +560,8 @@ UI.TabbedPane = class extends UI.VBox { ...@@ -560,6 +560,8 @@ UI.TabbedPane = class extends UI.VBox {
_createDropDownButton() { _createDropDownButton() {
const dropDownContainer = createElementWithClass('div', 'tabbed-pane-header-tabs-drop-down-container'); const dropDownContainer = createElementWithClass('div', 'tabbed-pane-header-tabs-drop-down-container');
const chevronIcon = UI.Icon.create('largeicon-chevron', 'chevron-icon'); const chevronIcon = UI.Icon.create('largeicon-chevron', 'chevron-icon');
UI.ARIAUtils.markAsButton(dropDownContainer);
UI.ARIAUtils.setAccessibleName(dropDownContainer, ls`More tabs`);
dropDownContainer.appendChild(chevronIcon); dropDownContainer.appendChild(chevronIcon);
dropDownContainer.addEventListener('click', this._dropDownClicked.bind(this)); dropDownContainer.addEventListener('click', this._dropDownClicked.bind(this));
dropDownContainer.addEventListener('mousedown', event => { dropDownContainer.addEventListener('mousedown', event => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment