-
Notifications
You must be signed in to change notification settings - Fork 69
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
Added ARIA attributes to essential elements #232
base: main
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.
Please resolve conflicts and remove whitespace changes (you've replaced unix LF line endings with Windows CRLF line endings)
I'll resolve them asap. |
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.
Please:
- reduce the changes so that there isn't duplication of existing elements/text
- ARIA - Accessibility | MDN
The first rule of ARIA use is "If you can use a native HTML element or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so."
- ARIA - Accessibility | MDN
- Resolve conflicts with
main
branch - Add support for translation for added strings, where appropriate
@TimidRobot noted. |
This might take a little while as I would love to go through the contents of the link you provided, as it would help me understand better what to do and not to do when adding ARIA attributes. |
…ere needed/appropriate
Hi @TimidRobot , Corrections have been effected as requested. Do review when you can. Thank you. |
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.
Very close! Just a few small changes
@@ -167,7 +167,7 @@ <h4 class="b-header">{% trans "Links to relevant materials" %}</h4> | |||
{{ link_form.url.errors }} | |||
</div> | |||
<div class="column is-1"> | |||
<button type="button" class="button is-delete" onclick="deleteLinkForm('link-form-{{ forloop.counter0 }}')"> | |||
<button type="button" class="button is-delete" onclick="deleteLinkForm('link-form-{{ forloop.counter0 }}')" aria-label="Delete this link form"> |
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.
Please put the string in translation tags:
aria-label="{% trans 'Delete this link form' %}"
@@ -19,7 +19,7 @@ <h1 class="hero-title title is-2">{% trans "Frequently Asked Questions" %}</h1> | |||
</div> | |||
<div> | |||
{% for faq in faqs %} | |||
<article class="faq__content"> | |||
<article class="faq__content" aria-label="Frequently Asked Questions"> |
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.
Please put the string in trans tags:
aria-label="{% trans 'Frequently Asked Questions' %}"
@@ -42,4 +42,4 @@ def main(): | |||
except Exception: | |||
print("ERROR (1) Unhandled exception:", file=sys.stderr) | |||
print(traceback.print_exc(), file=sys.stderr) | |||
sys.exit(1) | |||
sys.exit(1) |
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.
Please restore the newline at end of file
Fixes
Description
The PR addresses the issue of adding ARIA attributes to essential components relative to legaldb.
Technical details
The footer and header files were untouched as changes from the vocabulary will be effected in it.
Checklist
Update index.md
).main
ormaster
).visible errors.
Developer Certificate of Origin
For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."
Developer Certificate of Origin