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

Unified Diff: chrome/browser/resources/uber/uber.js

Issue 10388034: Disables the ability to tab to navigation items when an overlay is displayed. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Simplifies navigation tabbing Created 8 years, 7 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/uber/uber.js
diff --git a/chrome/browser/resources/uber/uber.js b/chrome/browser/resources/uber/uber.js
index c46a82137592b2e0859c425b8ff24cd550aa17b9..4157e40ef9dd1b611903fbcdcb132e3f39189fad 100644
--- a/chrome/browser/resources/uber/uber.js
+++ b/chrome/browser/resources/uber/uber.js
@@ -151,6 +151,8 @@ cr.define('uber', function() {
*/
function backgroundNavigation() {
navFrame.classList.add('background');
+ navFrame.firstChild.tabIndex = -1;
+ navFrame.firstChild.setAttribute('aria-hidden', true);
}
/**
@@ -158,6 +160,8 @@ cr.define('uber', function() {
*/
function foregroundNavigation() {
navFrame.classList.remove('background');
+ navFrame.firstChild.tabIndex = 0;
+ navFrame.firstChild.removeAttribute('aria-hidden');
}
/**
« 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