Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/directory_tree.js

Issue 939073002: [Files.app a11y] Add missing a11y labels into buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js b/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
index 724c1621077809e6066e0e481a1ddb4c94fbb00d..03a3e88d46debd1a78cba482c94b9348c300fcbb 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
@@ -535,6 +535,7 @@ VolumeItem.prototype.setupEjectButton_ = function(rowElement) {
ejectButton.addEventListener(
'mousedown', function(event) { event.stopPropagation() });
ejectButton.className = 'root-eject';
+ ejectButton.setAttribute('aria-label', str('UNMOUNT_DEVICE_BUTTON_LABEL'));
ejectButton.addEventListener('click', function(event) {
event.stopPropagation();
var unmountCommand = cr.doc.querySelector('command#unmount');

Powered by Google App Engine
This is Rietveld 408576698