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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js

Issue 2776293002: Refresh ChromeVox options page CSS (Closed)
Patch Set: Fix missing edits to chromevox_strings.grd Created 3 years, 9 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/chromeos/chromevox/chromevox/background/options.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
index 53fc20aa6191e7f457f80449809fe4aa64b6068e..35d3ac6c38b213723a62fdfcd84ad56d80517f83 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/options.js
@@ -277,26 +277,18 @@ cvox.OptionsPage.populateBrailleTablesSelect = function() {
var updateTableType = function(setFocus) {
var currentTableType = localStorage['brailleTableType'] || 'brailleTable6';
if (currentTableType == 'brailleTable6') {
- select6.removeAttribute('aria-hidden');
- select6.setAttribute('tabIndex', 0);
- select6.style.display = 'block';
+ select6.parentElement.style.display = 'block';
+ select8.parentElement.style.display = 'none';
if (setFocus) {
select6.focus();
}
- select8.setAttribute('aria-hidden', 'true');
- select8.setAttribute('tabIndex', -1);
- select8.style.display = 'none';
localStorage['brailleTable'] = localStorage['brailleTable6'];
localStorage['brailleTableType'] = 'brailleTable6';
tableTypeButton.textContent =
Msgs.getMsg('options_braille_table_type_6');
} else {
- select6.setAttribute('aria-hidden', 'true');
- select6.setAttribute('tabIndex', -1);
- select6.style.display = 'none';
- select8.removeAttribute('aria-hidden');
- select8.setAttribute('tabIndex', 0);
- select8.style.display = 'block';
+ select6.parentElement.style.display = 'none';
+ select8.parentElement.style.display = 'block';
if (setFocus) {
select8.focus();
}

Powered by Google App Engine
This is Rietveld 408576698