Remove accessible slide status when printing to PDF

This commit is contained in:
quilicicf
2020-03-12 16:14:14 +01:00
parent 6564950c28
commit ffac5fe696
5 changed files with 12 additions and 6 deletions

View File

@ -292,8 +292,6 @@ export default function( revealElement, options ) {
statusElement.style.position = 'absolute';
statusElement.style.height = '1px';
statusElement.style.width = '1px';
statusElement.style.top = '-1px';
statusElement.style.left = '-1px';
statusElement.style.overflow = 'hidden';
statusElement.style.clip = 'rect( 1px, 1px, 1px, 1px )';
statusElement.classList.add( 'aria-status' );
@ -370,7 +368,7 @@ export default function( revealElement, options ) {
// Limit the size of certain elements to the dimensions of the slide
createStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
document.querySelector('html').classList.add( 'print-pdf' );
document.documentElement.classList.add( 'print-pdf' );
document.body.style.width = pageWidth + 'px';
document.body.style.height = pageHeight + 'px';