-
Notifications
You must be signed in to change notification settings - Fork 278
Labels
Description
Bug Description
Hi colleagues,
I notice that the aria-label attribute for the Switch control is derived from the ariaLabelText property.
However, sometimes the property is empty string, so aria attribute is displayed with empty value.
According to accessibility requirements (ACC-264), interactive controls must have a non-empty accessible name.
A possible fix would be to conditionally render the attribute only when a value is provided: aria-label={this.ariaLabelText || undefined}
Could you please take a look?
Affected Component
Switch
Expected Behaviour
Attributes with empty values should not be rendered.
Isolated Example
Steps to Reproduce
- Open the provided sample
- Inspect the control
- In Accessibility tab, notice the property with empty value
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.19
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
- I’m not disclosing any internal or sensitive information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New Issues