mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Refactor the toolbar html & css to improve its overall accessibility (bug 1171799, bug 1855695)
The first goal of this patch was to remove the tabindex because it helps to improve overall a11y. That led to move some html elements associated with the buttons which helped to position these elements relatively to their buttons. Consequently it was easy to change the toolbar height (configurable in Firefox with the pref browser.uidensity): it's the second goal of this patch. For a11y reasons we want to be able to change the height of the toolbar to make the buttons larger.
This commit is contained in:
parent
c90ce5da20
commit
6f40ed729b
9 changed files with 987 additions and 819 deletions
|
@ -516,7 +516,11 @@ const PDFViewerApplication = {
|
|||
}
|
||||
|
||||
if (!this.supportsIntegratedFind && appConfig.findBar) {
|
||||
this.findBar = new PDFFindBar(appConfig.findBar, eventBus);
|
||||
this.findBar = new PDFFindBar(
|
||||
appConfig.findBar,
|
||||
appConfig.principalContainer,
|
||||
eventBus
|
||||
);
|
||||
}
|
||||
|
||||
if (appConfig.annotationEditorParams) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue