I am trying to use this support thread to solve the exact same issue where a missing form label shows as an error in a WAVE scan but wrapping the short code with <label> is not working. I have tried several places to wrap in the label tag and I just keep getting the error.
I understand the issue now. The label tags are indeed missing but based on your design i suspect that you don't want to have label tags.
However if you need to have the label tags they can be added by using the following.
<label for='some-id'>Some Text</label>
Now some-id needs to be replaced with the ID of the field that the label is form. Are you using the classic view setup to create this or are you using the Blocks to design your view?
If you're using blocks then there is a label option when you highlight the filter field.
I am using the block editor. I am not very good at it. I have a hard time working with Gutenberg. But when I toggle the label on and off I still get the same error and the label is now showing as an orphaned label and the field is still showing without a label.
This is the code I get when I switch out of the block editor:
I see the label tag there but for some reason the scan still ignores it. The compliancy is more important to my client than the design so showing all the labels will be fine. I left the label on this one so you can see it.
The problem with the Block editor is that you're not able to properly specify the For attribute for the label, hence why you're getting these issues.
At present you may not be able to achieve this as a solution for this will need to be done directly from our development team.
However you can rebuild this search using the Classic archive editor as this provides you with the HTML and CSS code to make these changes and add the correct labelling information.