Commit 48d97ef6 authored by John Lee's avatar John Lee Committed by Commit Bot

WebUI: Add toolbar role and aria-label to multi-select toolbar

Bug: 1142076
Change-Id: I81cee8a975a7d289fd4272475f9010aa87c909c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2559289Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831131}
parent 5afa6055
......@@ -42,6 +42,10 @@ Polymer({
'updateSelectionLabel_(show, selectionLabel)',
],
hostAttributes: {
'role': 'toolbar',
},
/** @return {HTMLElement} */
get deleteButton() {
return /** @type {HTMLElement} */ (this.$$('#delete'));
......@@ -64,6 +68,7 @@ Polymer({
this.debounce('updateSelectionLabel_', () => {
this.selectionLabel_ =
this.show ? this.selectionLabel : this.selectionLabel_;
this.setAttribute('aria-label', this.selectionLabel_);
});
},
......
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