Make WordPress Core

Opened 6 months ago

Closed 5 months ago

Last modified 5 months ago

#62733 closed defect (bug) (worksforme)

Improve accessibility of the comment form

Reported by: martatorre's profile martatorre Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: reporter-feedback close
Focuses: accessibility Cc:

Description

The comment form in WordPress could benefit from better labeling to be fully accessible to users with disabilities. Some fields are not properly labeled with aria-label attributes.

Change History (7)

#1 @abcd95
6 months ago

  • Focuses accessibility added
  • Keywords reporter-feedback added

Hey @martatorre, Welcome to Trac. Thanks for raising this.

I've checked the relevant parts of the form and they seemed to be fine. However, it would be really helpful if you could provide specific examples of fields that you noticed are missing proper aria labels. Maybe a screenshot of what you're referring to. Also, additional information like WordPress version, Theme, and its version would be helpful.

Please feel free to share the specific areas you're concerned about.

#2 @audrasjb
6 months ago

Hello,

Yes, we need more information here.

Please note that themes authors can override default form settings, so it may strongly depends on your active theme.

#3 @joedolson
6 months ago

When you say "Some fields are not properly labeled with aria-label attributes" I'm not sure what you're expecting.

An aria-label is not a necessary field for accessibility; it's an alternative method to provide a label if there's no option to add an HTML label. The default WordPress comment form makes use of properly associated label elements with a for/id relationship, and aria-label attributes are not needed. However, as @audrasjb mentions, themes can and frequently do override the standard markup, so you may be dealing with a non-default comment form.

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


5 months ago

#5 @joedolson
5 months ago

  • Keywords close added

The most likely cases here are that this is either the core form, and aria-label is missing because it is not required; or it's a theme-provided form that may have some accessibility problems.

I recommend closing this issue, but I'll give it an additional week for feedback from @martatorre so we can get more information if it is a core issue.

#6 @martatorre
5 months ago

Thank you all for your comments.
I have gone back and read the documentation and it is true that in this case an aria-label would not be necessary.
I wanted to apologise and thank you very much for all your contributions.

#7 @audrasjb
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Thanks for the feedback! :)

Closing as works for me.

Last edited 5 months ago by audrasjb (previous) (diff)
Note: See TracTickets for help on using tickets.