tada1
Forum Replies Created
-
Forum: Plugins
In reply to: [Antispam Bee] Accessibility: Form elements do not have associated labelsHi again,
I found the solution, but it is a bit tricky.
1. aria-hidden and hidden is not applicable in this case, the error “Form elements do not have associated labels” is only about the association of the label and textarea
2. My solution for this error is the following approach:
usually the connection is between ref on the label and id of the text-area. With aria-properties you can reverse it. So I added aria-labelledby=”comment-lbl” to the first textarea in antispam_bee.php and made a comment-form textarea override in my theme and put an id=”comment-lbl” to the standard label of the text-area. So the label references the hidden textarea with the standard way ref and id and the real textarea is referenced reverse with labelledby and id. This brings 100% score for me in the Lighthouse-Test and I think it probably will not break the spam-protection.Cheers =))
Forum: Plugins
In reply to: [Antispam Bee] Accessibility: Form elements do not have associated labelsHi,
Thanks for your response.
I double-checked the theme and plugin (Antispam Bee 2.11.1). There is no comment-field-override in the theme.
The code which I am referring to is in the antispam_bee.php -file
in the replace_comment_field_callback() – function.
line 1269 – 1290: there is the first textarea with the dynamic properties and the second textarea with the static properties.2 textareas and only one label and the one which is hidden has the label associated and the visible one with dynamic properties not. I am pretty sure that this causes the problem.
All the best