web-components
web-components copied to clipboard
Remove the empty label for Screen reader when it's empty
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>
Browsers
- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Safari on iOS
- [ ] Edge
Screen Readers
- [ ] None
- [ ] NVDA
- [ ] JAWS
- [ ] VoiceOver on MacOS
- [ ] VoiceOver on iOS