Closed Bug 1724918 Opened 4 years ago Closed 3 years ago

Support highlighting required fields

Categories

(Firefox :: PDF Viewer, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
103 Branch
Accessibility Severity s2
Tracking Status
relnote-firefox --- 103+
firefox-esr91 --- wontfix
firefox-esr102 --- fixed
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- verified

People

(Reporter: t, Assigned: calixte)

References

Details

(Keywords: access, Whiteboard: [pdfjs-ux])

Attachments

(7 files)

Some fields are required to be filled, and PDF.JS doesn't highlight them (see screenshot). Perhaps it depends on the XFA JS API that is yet to be implemented.

Please attach the PDF in question for further investigation.
Thank you for your contribution!

Flags: needinfo?(t)

I'm running Acrobat Reader Continuous Release Version 2021.005.20060 and I don't see a highlight of required fields.

Which version of Acrobat Reader are you running?
Is there a setting that should be set up in order to highlight required fields?

On the other hand, it's worth mentioning that if this highlight is a dynamic element of XFA forms, it is not supported at this time.
@Calixte: What do you think of this bug?

Flags: needinfo?(cdenizet)

I don't have the Windows machine around, but I remember downloading the latest version, probably the same as yours: 2021.005.20060. Maybe you have upgraded and had some settings saved before, which modified the behavior for required fields.

I found this solution in a forum post: Edit > Preferences > Forms > Highlight Color > Show border hover color for fields

I would assume that (red) highlighting required fields is not done through custom JS, instead it is probably specified in the XFA "standard". Custom JS is suggested in this post only for other colors, for recommended (not required) fields.

I can confirm this as an enhancement suggestion. This appears to be a secondary feature of Adobe Reader (deactivated by default, needs activation) that is not implemented in Firefox.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

It isn't only a matter of XFA, acroform fields have a flag to tell if the field is required or not:
https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#G11.2097409
It's likely something useful especially to avoid to print a form without all the required info but in the meantime the users must understand by themselves what this red border around a field means.

Flags: needinfo?(cdenizet)
Summary: [XFA] Required fields are not highlighted → Required fields are not highlighted

:RT, do you think we should add a red border (or whatever) on required fields in a pdf form ?

Flags: needinfo?(rtestard)
Severity: S3 → --
Summary: Required fields are not highlighted → Support highlighting required fields
Version: Firefox 93 → Trunk
Whiteboard: [pdfjs-ux]

:danibodea - have you looked at this on windows with high contrast mode enabled?
I'd be interested to know if there are differences between the way acrobat behaves and the way we behave there, too.

Flags: needinfo?(daniel.bodea)

Note that this will need a11y semantics as well, either the HTML required attribute or the aria-required attribute.

Attached image HCM Black.png
Flags: needinfo?(daniel.bodea)
Attached image HCM White.png

(In reply to Morgan Reschenberg [:morgan] from comment #8)

:danibodea - have you looked at this on windows with high contrast mode enabled?
I'd be interested to know if there are differences between the way acrobat behaves and the way we behave there, too.

I've posted screenshots of a comparison between Adobe Acrobat vs Nightly v99 and how they hangle High Contrast.
Do you need me to do anything else?

Flags: needinfo?(mreschenberg)

Nope that's great, thank you!

It looks like Adobe is making a choice to forced red styling, ignoring the user's chosen palette. I think we can do better.

Let's use the selectedItem color to draw the highlight when High Contrast Mode is enabled on windows.

Flags: needinfo?(mreschenberg)
Keywords: access

Can you set access severity?

Flags: needinfo?(mreschenberg)

Marking s2 since as I understand it, we're not communicating required status at all here -- users would have to resort to an entirely different viewer to find out which fields are required.

Flags: needinfo?(mreschenberg)
Whiteboard: [pdfjs-ux] → [pdfjs-ux][access-s2]
Severity: -- → S2
Priority: -- → P2

(In reply to Calixte Denizet (:calixte) from comment #7)

:RT, do you think we should add a red border (or whatever) on required fields in a pdf form ?

APologies for the delay, I finally got a "Go" from UX so let's implemnt as proposed

Flags: needinfo?(rtestard)
Attached image image.png

The fields on the top are required but not the ones on the bottom (with the Night Sky theme on Windows 11).
The css for the required ones:

border: 1.5px solid selectedItem;

and I've the feeling that the contrast level between the border colors for required vs non-required is a bit weak.
:morgan, wdyt ?

Flags: needinfo?(mreschenberg)
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: P2 → P1

(In reply to Calixte Denizet (:calixte) from comment #17)

Created attachment 9280024 [details]
image.png

The fields on the top are required but not the ones on the bottom (with the Night Sky theme on Windows 11).
The css for the required ones:

border: 1.5px solid selectedItem;

and I've the feeling that the contrast level between the border colors for required vs non-required is a bit weak.
:morgan, wdyt ?

We only have a readability "guarantee" between fg/bg pairs (ie. CanvasText/Canvas or ButtonText/ButtonFace).
Because we're using the color semantically, I'm inclined to say this is alright for now. Also, users can customize their theme for more contrast. Re: form fields in general, it looks like we aren't using button colors for the controls, which we should be 😀 but that's a separate issue.

Flags: needinfo?(mreschenberg)
Commit merged into master by GitHub Authored by Jonas Jenwald (Snuffleupagus)

Release Note Request (optional, but appreciated)
[Why is this notable]: Users had no way to know which fields are required to be filled in a PDF form.
[Affects Firefox for Android]: No.
[Suggested wording]: Fields required to be filled in PDF forms are now highlighted.
[Links (documentation, blog post, etc)]: N/A

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
relnote-firefox: --- → ?
Resolution: --- → FIXED

Note added to 103 nightly release notes.
Slightly reworded "Required fields are now highlighted in PDF forms."

Flags: qe-verify+

I can confirm this enhancement is implemented on Firefox 103.0b2(build ID: 20220628190840) and Nightly 104.0a1(build ID: 20220629215821) on macOS 11, Windows 10 64-bits and Ubuntu 22.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Depends on: 1780839
Target Milestone: --- → 103 Branch
Accessibility Severity: --- → s2
Whiteboard: [pdfjs-ux][access-s2] → [pdfjs-ux]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: