-
Notifications
You must be signed in to change notification settings - Fork 27
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
Accessibility improvements for submission report pdf #5099
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if we should have the translations in this PR. I remember we do it in the release flow (let me know if something has changed).
Ah yeah, you're right.. I'll remove them from the PR 👍 |
ead9eb0
to
fef4e04
Compare
@@ -76,19 +78,23 @@ <h2 class="subtitle">{{ submission_step_node.render }}</h2> | |||
{% if component_node.component.type == "fieldset" %} | |||
<span class="submission-step-row__fieldset-label">{{ component_node.label }}</span> | |||
{% else %} | |||
<div class="submission-step-row__label"> | |||
<span id="{{ component_node.key }}" class="submission-step-row__label"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if these are sufficiently unique if you use repeating groups, have you tested that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this wasn't enough for repeating groups... I've added the component_node.configuration_path
as prefix, to ensure unique ids. I'm not entirely sure configuration_path
is the best fit in this situation, but it creates the right result.
I've tried using the component_node.path
and component_node.json_renderer_path
, but couldn't get those to render properly...
If you have another solution in mind for this, i would love to hear it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's stick to that then - @viktorvanwijk this further complicates the data structures cleanup 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent 🙃
Added aria tags that showcase that field label and field value are related
…n report pdf To indicate when a field has been left empty by the user, show "No information provided" in the place where the filled in information would have been. This also helps screen reader users identify which fields aren't filled in.
Without the `spaceless` tags the pdf will be generated with leading and trailing whitespace. This whitespace only visible/noticeable when you look at the title in the pdf metadata.
fef4e04
to
c2c4ddb
Compare
Closes #5047
Changes
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Dockerfile/scripts
./bin
folderCommit hygiene