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

Unified Diff: chrome/browser/resources/print_preview/print_preview_animations.js

Issue 477133004: Printe Preview: add 'More/less options' button and make non-essential sections collapsible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Print Preview UI tests adjusted. Created 6 years, 4 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/print_preview/print_preview_animations.js
diff --git a/chrome/browser/resources/print_preview/print_preview_animations.js b/chrome/browser/resources/print_preview/print_preview_animations.js
index 31aaaa2357632c05d7900956f48fe571d6a86361..c088696110fcb68af3e52f030e389078dc74c1b6 100644
--- a/chrome/browser/resources/print_preview/print_preview_animations.js
+++ b/chrome/browser/resources/print_preview/print_preview_animations.js
@@ -43,6 +43,7 @@ function fadeInElement(el) {
return;
el.classList.remove('closing');
el.hidden = false;
+ el.setAttribute('aria-hidden', 'false');
el.style.height = 'auto';
var height = el.offsetHeight;
el.style.height = height + 'px';
@@ -70,6 +71,7 @@ function fadeOutElement(el) {
el, 'webkitTransitionEnd', onFadeOutTransitionEnd.bind(el), false);
el.classList.add('closing');
el.classList.remove('visible');
+ el.setAttribute('aria-hidden', 'true');
}
/**

Powered by Google App Engine
This is Rietveld 408576698