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

include aria-required in feedback form #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Jan 7, 2025

No description provided.

@@ -145,6 +145,7 @@ <h2>With navigation links</h2>
class="form-control"
rows="5"
required="required"
aria-required="true"
Copy link
Contributor

@jcoyne jcoyne Jan 7, 2025

Choose a reason for hiding this comment

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

Isn't aria-required superfluous when required is specified? It seems like aria-required should only be used for non-semantic elements. see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-required#description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was under the understanding you might need both at least for older browsers but maybe it is moot. https://usability.yale.edu/web-accessibility/articles/forms

Copy link
Member

Choose a reason for hiding this comment

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

"Older versions of HTML" is different from "older browsers" though – all our stuff is HTML5, so the required attribute should always do the same thing as aria-required, I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants