Merge pull request #5139 from overleaf/ae-pdfjs-viewer-tabindex

Add tabindex to pdfjs-viewer element

GitOrigin-RevId: be7bcba5e3c462b712dcb4deabe3ff8cf3d0233b
This commit is contained in:
Alf Eaton 2021-09-17 11:55:50 +01:00 committed by Copybot
parent 94a46c3c40
commit d9d7382e80
2 changed files with 4 additions and 0 deletions

View file

@ -155,6 +155,7 @@ export default App.directive('pdfng', ($timeout, localStorage) => ({
<div
data-pdf-viewer
class="pdfjs-viewer"
tabindex="0"
pdf-src='pdfSrc'
position='position'
scale='scale'

View file

@ -146,6 +146,9 @@
box-sizing: content-box;
user-select: none;
}
&:focus-within {
outline: none;
}
}
.progress-thin {
position: absolute;