Commit c54cd222 authored by mathp's avatar mathp Committed by Commit bot

[New Tab Page] Add aria-hidden to an element.

Skips it during accessibility treatment.

BUG=326793

Review URL: https://codereview.chromium.org/569613003

Cr-Commit-Position: refs/heads/master@{#294659}
parent e3934435
...@@ -725,6 +725,7 @@ function createTile(page, position) { ...@@ -725,6 +725,7 @@ function createTile(page, position) {
// The iframe which renders either a thumbnail or domain element. // The iframe which renders either a thumbnail or domain element.
var thumbnailElem = document.createElement('iframe'); var thumbnailElem = document.createElement('iframe');
thumbnailElem.tabIndex = '-1'; thumbnailElem.tabIndex = '-1';
thumbnailElem.setAttribute('aria-hidden', 'true');
// Keep this ID here. See comment above. // Keep this ID here. See comment above.
thumbnailElem.id = 'thumb-' + rid; thumbnailElem.id = 'thumb-' + rid;
thumbnailElem.className = CLASSES.THUMBNAIL; thumbnailElem.className = CLASSES.THUMBNAIL;
...@@ -763,7 +764,7 @@ function createTile(page, position) { ...@@ -763,7 +764,7 @@ function createTile(page, position) {
* Generates a function to be called when the page with the corresponding RID * Generates a function to be called when the page with the corresponding RID
* is blacklisted. * is blacklisted.
* @param {number} rid The RID of the page being blacklisted. * @param {number} rid The RID of the page being blacklisted.
* @return {function(!Event)} A function which handles the blacklisting of the * @return {function(Event=)} A function which handles the blacklisting of the
* page by updating state variables and notifying Chrome. * page by updating state variables and notifying Chrome.
*/ */
function generateBlacklistFunction(rid) { function generateBlacklistFunction(rid) {
......
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