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

Unified Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2955563002: MD Bookmarks: Initial screenreader accessibility improvements (Closed)
Patch Set: Hide the undo button when toast is closed Created 3 years, 6 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: chrome/browser/resources/md_bookmarks/item.js
diff --git a/chrome/browser/resources/md_bookmarks/item.js b/chrome/browser/resources/md_bookmarks/item.js
index 50fa1cd2ae7bf9d9b7d129d224031e84e1b4e27e..ceca17ecdef31954c5e3528ec5cf2cd2c3728eb4 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -34,6 +34,10 @@ Polymer({
isFolder_: Boolean,
},
+ hostAttributes: {
+ 'role': 'listitem',
+ },
+
observers: [
'updateFavicon_(item_.url)',
],
@@ -117,6 +121,7 @@ Polymer({
/** @private */
onItemChanged_: function() {
this.isFolder_ = !this.item_.url;
+ this.setAttribute('aria-label', this.item_.title);
},
/**

Powered by Google App Engine
This is Rietveld 408576698