Open Bug 1716806 Opened 3 years ago Updated 8 days ago

There should be a separator space between radio buttons/checkboxes and their labels/strings

Categories

(Firefox :: PDF Viewer, defect, P3)

Desktop
All
defect

Tracking

()

Accessibility Severity s4
Tracking Status
firefox89 --- disabled
firefox90 --- disabled
firefox91 --- affected

People

(Reporter: danibodea, Unassigned, Mentored)

References

Details

(Keywords: access, Whiteboard: [pdfjs-form-xfa][pdfjs-accessibility] [good-first-bug])

Attachments

(10 files)

Note

  • When the user loads the corresponding PDF file, he will notice that the placeholder texts are not being displayed.

Affected versions

  • Nightly v91.0a1

Affected platforms

  • all

Steps to reproduce

  1. Launch browser.
  2. Flip the pdfjs.enableXfa to true.
  3. Load the attached PDF file.

Expected result

  • The placeholder texts from inside the name and date fields are correctly displayed.

Actual result

  • The placeholder texts from inside the name and date fields are missing.

Regression range

  • Not a recent regression, but an implementation flaw.
Priority: -- → P3
QA Whiteboard: [pdf_xfa_generic]
See Also: → 1721636
Keywords: access

This issue also occurs here and it has a considerable influence on aesthetics.

Blocks: 1722740
Whiteboard: [access-s4]

Another example where the labels are too close to the controls.

This issue is also observed in this PDF.

Whiteboard: [access-s4] → [access-s4][pdfjs-form-xfa]
Whiteboard: [access-s4][pdfjs-form-xfa] → [access-s4][pdfjs-form-xfa][pdfjs-accessibility]
Accessibility Severity: --- → s4
Whiteboard: [access-s4][pdfjs-form-xfa][pdfjs-accessibility] → [pdfjs-form-xfa][pdfjs-accessibility]

I'm flagging this as a good-first-bug. It looks like we just need to add some margin in viewer.css. The pref mentioned in comment 0 is already true, so you just need to open attachment 9232832 [details] and inspect the result in devtools' inspector.

To get started, you'll need a working dev environment and a local build of firefox. You can follow the docs here to get that setup. You can leave a comment here on the bug stating your intention to work on it. It will be assigned to you once you submit a patch. If you have questions, feel free to need-info me here (check the "request information from" box on this bug form.)

Mentor: sfoster
Whiteboard: [pdfjs-form-xfa][pdfjs-accessibility] → [pdfjs-form-xfa][pdfjs-accessibility] [good-first-bug]

Something along these lines seems to work:

:is(.xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
  margin-left: 2px;
}

:is(.xfaLeft) > :is(.xfaCaption, .xfaCaptionForCheckButton) {
  margin-right: 2px;
}

I added the second rule for RTL but could not find samples to test with.

Assignee: nobody → joe.scott.webster

Hi, I'll be working on this bug and will submit a patch soon.

Hi Sam,

I'm having a difficult time reproducing this bug. Unfortunately, I can't access any of the previously attached PDFs, but I was able to find the two Canadian forms that Daniel Bodea shared above (I've attached both). These forms seems to be rendering correctly in my local Firefox build. Do you have any suggestions?

Flags: needinfo?(sfoster)

You can use the pdf in bug 1721636.
For your information, you must set up pdf.js locally, fix the bug and make a PR:
https://github.com/mozilla/pdf.js/

:Joseph, you must:

Now you can hack on whatever css/js/html file.
Once your patch is ready, you just have to submit a PR and few days after your change will be available in Firefox (we make at least one release per week).

Flags: needinfo?(sfoster)

Thank you for the additional information, Calixte. Much appreciated! My plan is to submit the PR today. I'll let you know if I have any additional questions.

I just submitted a pull request for this bug. Note: my changes do not address the missing placeholder text.

https://github.com/mozilla/pdf.js/pull/17948

Thanks!

Mentor: sfoster → cdenizet

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: joe.scott.webster → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: