Possible Incorrect Warnings

I am not sure if they are valid or if I am doing something wrong.

Example 1: I have a select field where what would be in the label is in the first defualt option.

Screenshot 2026-02-27 at 8.30.59 AM

<select id="selectJobLocation" class="form-select mt-5 form-select-sm" dmx-bind:options="filter_locations.data.query" optiontext="JOJobCity" optionvalue="JOJobCity">
     <option value="">Showing All Locations</option>
</select>

Example 2: This is a iput field where what would be in the label is in the place holder text

Screenshot 2026-02-27 at 8.34.28 AM

<input id="search_productions" name="search_productions" type="search" class="form-control form-control-sm" placeholder="Title Search">

In both cases the label was left off on purpose to save space and design.

Would be helpful, in this case, to have an 'Ignore Warning' button maybe?

If this is a valid warning, we need a way to add the .visually-hidden class to the label in the UI.

Wow, I would have never looked way down there. Thanks @Quy ! That totally fixed it. I am happy that this is not a bug. And I learned something new to boot. Much appreciated.

1 Like

To add to this discussion, inputs that do not require labels

  • <input type="hidden"> -- ignored by assistive tech.
  • <button> elements -- the button text itself is the label
  • Icon-only buttons -- must still have an accessible name, but not a <label>
  • Decorative or disabled controls that are not interactive

These controls must have labels:

  • Text inputs (name, email, phone, etc.)
  • Textareas
  • Select dropdowns
  • Checkboxes
  • Radio buttons
  • Date, number, and other semantic input types
  • Search fields (even if the label is visually hidden)

You could use floating labels instead

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

Fixed in Wappler 7.7.5