We get the error message: A form label must be associated with a control., which is not actually what the issue is.
I think it would be helpful to have a separate error message for this case, something like: A form label must have accessible text. to clear up any confusion between the two cases
This rule checks two things:
However, the error message never accounts for the second case. So, if we had this code:
We get the error message:
A form label must be associated with a control.
, which is not actually what the issue is.I think it would be helpful to have a separate error message for this case, something like:
A form label must have accessible text.
to clear up any confusion between the two cases