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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_single.js

Issue 2305723002: local ntp: fix up accessibility tree (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/most_visited_single.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_single.js b/chrome/browser/resources/local_ntp/most_visited_single.js
index 89b6adfd2d03ddb1ee696f29e6b1c8eb5acbebb8..e2e0911eb43557e4178920adaf9de2185fcbb191 100644
--- a/chrome/browser/resources/local_ntp/most_visited_single.js
+++ b/chrome/browser/resources/local_ntp/most_visited_single.js
@@ -379,13 +379,14 @@ var renderTile = function(data) {
html.push('<div class="mv-favicon"></div>');
}
html.push('<div class="mv-title"></div><div class="mv-thumb"></div>');
- html.push('<div class="mv-x"></div>');
+ html.push('<div class="mv-x" role="button"></div>');
tile.innerHTML = html.join('');
tile.lastElementChild.title = queryArgs['removeTooltip'] || '';
if (isSchemeAllowed(data.url)) {
tile.href = data.url;
}
+ tile.setAttribute('aria-label', data.title);
tile.title = data.title;
if (data.impressionUrl) {
impressionUrl = data.impressionUrl;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698