mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Annotation & XFA: Add focus outlines on different fields (bug 1723615, bug 1718528)
- set a default tabindex to be sure they'll be taken into account in the TAB cycle (https://bugzilla.mozilla.org/show_bug.cgi?id=1723615). - show default outline when fields are focused (it was an a11y bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1718528).
This commit is contained in:
parent
4ad65c8b9c
commit
fef939d347
4 changed files with 39 additions and 4 deletions
|
@ -95,6 +95,14 @@
|
|||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.annotationLayer .textWidgetAnnotation input :focus,
|
||||
.annotationLayer .textWidgetAnnotation textarea :focus,
|
||||
.annotationLayer .choiceWidgetAnnotation select :focus,
|
||||
.annotationLayer .buttonWidgetAnnotation.checkBox :focus,
|
||||
.annotationLayer .buttonWidgetAnnotation.radioButton :focus {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
|
||||
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
|
||||
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
|
||||
|
|
|
@ -155,7 +155,13 @@
|
|||
.xfaSelect:focus {
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
outline: auto;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.xfaCheckbox:focus,
|
||||
.xfaRadio:focus {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
.xfaTextfield,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue