There should be a separator space between radio buttons/checkboxes and their labels/strings
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
Accessibility Severity | s4 |
People
(Reporter: danibodea, Unassigned, Mentored)
References
Details
(Keywords: access, Whiteboard: [pdfjs-form-xfa][pdfjs-accessibility] [good-first-bug])
Attachments
(10 files)
203.39 KB,
image/png
|
Details | |
2.29 MB,
application/pdf
|
Details | |
341.73 KB,
image/png
|
Details | |
1.84 MB,
application/pdf
|
Details | |
255.82 KB,
image/png
|
Details | |
1.49 MB,
application/pdf
|
Details | |
363.45 KB,
image/png
|
Details | |
264.30 KB,
application/pdf
|
Details | |
1.19 MB,
application/pdf
|
Details | |
32.63 KB,
application/pdf
|
Details |
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
- Launch browser.
- Flip the pdfjs.enableXfa to true.
- 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.
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
This issue also occurs here and it has a considerable influence on aesthetics.
Reporter | ||
Comment 2•3 years ago
|
||
Reporter | ||
Comment 3•3 years ago
|
||
Another example where the labels are too close to the controls.
Reporter | ||
Comment 4•3 years ago
|
||
Reporter | ||
Comment 5•3 years ago
|
||
This issue is also observed in this PDF.
Reporter | ||
Comment 6•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•1 years ago
|
Comment 7•1 year ago
|
||
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.)
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.
Updated•7 months ago
|
Comment 9•7 months ago
|
||
Hi, I'll be working on this bug and will submit a patch soon.
Comment 10•7 months ago
|
||
Comment 11•7 months ago
|
||
Comment 12•7 months ago
|
||
Comment 13•7 months ago
|
||
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?
Comment 14•7 months ago
|
||
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/
Comment 15•7 months ago
•
|
||
:Joseph, you must:
- get the code: https://github.com/mozilla/pdf.js/?tab=readme-ov-file#getting-the-code
- copy the pdf in bug 1721636 in the directory
test/pdfs/
, asbug1721638.pdf
- open http://localhost:8888/web/viewer.html?file=/test/pdfs/bug1721638.pdf
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).
Comment 16•7 months ago
|
||
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.
Comment 17•7 months ago
|
||
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!
Updated•7 months ago
|
Comment 18•8 days ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Description
•