web-components icon indicating copy to clipboard operation
web-components copied to clipboard

Remove the empty label for Screen reader when it's empty

Open jcgueriaud1 opened this issue 8 months ago • 1 comments

What is the problem?

For the vaadin-select, we have an empty label for screen reader with the slot sr-label. I don’t think it’s a big issue since it’s not linked to the input and it’s empty.

But the label is unnecessary and some accessibility checkers are complaining about empty <label>

image

Browsers

  • [ ] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Safari on iOS
  • [ ] Edge

Screen Readers

  • [ ] None
  • [ ] NVDA
  • [ ] JAWS
  • [ ] VoiceOver on MacOS
  • [ ] VoiceOver on iOS

jcgueriaud1 avatar Dec 05 '23 08:12 jcgueriaud1