Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline fields which are required (bug 1724918) #15000

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

calixteman
Copy link
Contributor

Comment on lines 238 to 246
@media (forced-colors: active) {
.annotationLayer .textWidgetAnnotation input:required,
.annotationLayer .textWidgetAnnotation textarea:required,
.annotationLayer .choiceWidgetAnnotation select:required,
.annotationLayer .buttonWidgetAnnotation.checkBox input:required,
.annotationLayer .buttonWidgetAnnotation.radioButton input:required {
border: 1.5px solid selectedItem;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to our other CSS files, can we please put this block after the :root-definition at the top of the file (since that provides a better overview)?

Comment on lines 338 to 342
@media (forced-colors: active) {
.xfaLayer *:required {
outline: 1.5px solid selectedItem;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to our other CSS files, can we please put this block after the :root-definition at the top of the file (since that provides a better overview)?

Comment on lines 944 to 951
_setRequired(element, isRequired) {
if (isRequired) {
element.setAttribute("required", "true");
element.setAttribute("aria-required", "true");
} else {
element.removeAttribute("required");
element.setAttribute("aria-required", "false");
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that setAttribute will do string conversion automatically, see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute#parameters, hence this could perhaps be formatted like so:

Suggested change
_setRequired(element, isRequired) {
if (isRequired) {
element.setAttribute("required", "true");
element.setAttribute("aria-required", "true");
} else {
element.removeAttribute("required");
element.setAttribute("aria-required", "false");
}
}
_setRequired(element, isRequired = false) {
if (isRequired) {
element.setAttribute("required", true);
} else {
element.removeAttribute("required");
}
element.setAttribute("aria-required", isRequired);
}

}
},
{ "id": "bug1724918",
"file": "pdfs/bug1724918.pdf",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not included in the patch.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with passing tests; thank you!

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 1

Live output at: http://54.241.84.105:8877/30b06e089c4ad6f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 1

Live output at: http://54.193.163.58:8877/7266bc02a0dee6e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/30b06e089c4ad6f/output.txt

Total script time: 26.16 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 209
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/30b06e089c4ad6f/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/7266bc02a0dee6e/output.txt

Total script time: 28.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 89

Image differences available at: http://54.193.163.58:8877/7266bc02a0dee6e/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/5a6c293e5a41f7d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Windows)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.193.163.58:8877/58b5ef4b419080a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5a6c293e5a41f7d/output.txt

Total script time: 22.66 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/58b5ef4b419080a/output.txt

Total script time: 21.86 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants