You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ui5-select): add accessibleDescription and accessibleDescriptionRef (#12081)
* feat(ui5-select): add accessibleDescription and accessibleDescriptionRef support
- Add accessibleDescription property for providing descriptive text
- Add accessibleDescriptionRef property for referencing external description elements
- Update aria-describedby to include both value state and accessible descriptions
- Add comprehensive Cypress tests covering:
* Basic accessibleDescription functionality
* accessibleDescriptionRef with single and multiple element references
* Dynamic updates when referenced elements change
* Interaction with existing valueState descriptions
- Add test page examples demonstrating various usage scenarios
- Ensure proper accessibility attribute handling and ARIA compliance
Related: #12004
* fix(ui5-select): prevent empty aria-describedby attribute rendering
- Fixed ariaDescribedByIds getter to return undefined when no valid IDs exist
- Updated SelectTemplate to conditionally render aria-describedby using spread operator
- Added comprehensive tests for accessibleDescription and accessibleDescriptionRef
- Ensures proper accessibility standards by not rendering empty ARIA attributes
This prevents invalid HTML where aria-describedby="" would be rendered
when no accessible description or value state is present.
0 commit comments