Hello,
I recently added comments on my site, and I've made a pagespeed, the theme is usually so good that I can make a 100/100 everywhere, but with the comments there is a little problem.
Form elements do not have associated labels
Labels ensure that form controls are announced properly by assistive technologies, like screen readers.
Failing Elements
div.post-comments > div#respond > form#commentform > textarea#comment
<textarea id="comment" name="comment" cols="30" rows="10" aria-required="true">
Could you fix this please? Or is there a code that I could add to my functions.php plugin so this is fixed?
Thanks in advance!
Thanks!
I think it can be solved by adding aria-label="comment" https://dequeuniversity.com/rules/axe/4.4/label?utm_source=lighthouse&utm_medium=lr but as I'm not a dev, maybe I'm totally wrong!
That being said, in order to give you the best possible answer, I've just added aria-label="comment" to theme/comments.php and It solved the issue!
So I think that adding that to the next update should give the 100/100 to everyone!
Have a nice day