Carousel: no API to specify accessible name for individual slide listitem elements
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Description
The ui5-carousel component renders each slide as role="listitem" inside a shadow DOM role="list" container. These listitem elements have no accessible name — the accessibility tree shows listitem "" (empty name) for every slide.
There is currently no API that allows callers to specify an accessible name per slide from the light DOM. The component does not propagate aria-label from slotted items to the shadow listitem wrappers, and there is no typed prop or slot mechanism for this purpose.
Steps to Reproduce
- Create a
ui5-carouselwith multiple content items - Inspect the accessibility tree in browser DevTools
- Observe that each slide wrapper has
role="listitem"with an empty accessible name ("")
Current Behavior
From CarouselTemplate.tsx:
<div
role="listitem"
aria-posinset={itemInfo.posinset}
aria-setsize={itemInfo.setsize}
tabindex={itemInfo.tabIndex}
>
<slot name={itemInfo.item._individualSlot}></slot>
</div>
The listitem has position attributes but no aria-label/aria-labelledby, and there is no mechanism for the caller to contribute a name to this shadow DOM element.
Accessibility tree:
list "Item Container"
listitem "" focusable: true ← no accessible name
[all slide content]
listitem "" focusable: true
Expected Behavior
Each listitem should have an accessible name identifying the slide. Screen readers would announce it when focus lands on a slide, giving users immediate context.
Proposed approach: if the directly slotted element has an aria-label, the Carousel copies it onto the shadow listitem:
<div
role="listitem"
aria-label={itemInfo.item.getAttribute?.("aria-label") ?? undefined}
aria-posinset={itemInfo.posinset}
aria-setsize={itemInfo.setsize}
tabindex={itemInfo.tabIndex}
>
Caller usage:
<ui5-carousel accessible-name="Needs Attention">
<div aria-label="My Team"><!-- card content --></div>
<div aria-label="Pending Approvals"><!-- card content --></div>
</ui5-carousel>
Impact
- Screen readers cannot identify which slide is focused
- Without a name on the
listitem, browse-mode screen readers fall through into slide content rather than treating the slide as a navigable unit - Users cannot build a mental model of carousel content from keyboard navigation alone
WCAG Reference
- 1.3.1 Info and Relationships —
listitemrole conveys no information about slide identity - 4.1.2 Name, Role, Value — focusable
listitemhas no accessible name
Environment
@ui5/webcomponents2.24- Browser: Chrome
- Screen reader: JAWS 2026
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 289
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 33
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UI5/webcomponents
-
bug Medium Prio TOPIC RL
Difficulty 1/5 Under an hour Newbie friendliness 78/100
UI5/webcomponents#14310 · 1 comment ·
Maintainers usually reply within 2 days
-
[ui5-li | ui5-list]: inner RadioButton announces 'Item Selection.' instead of option label in single-select mode (WCAG 4.1.2)Possibly taken @PetyaMarkovaBogdanova claimed this 19 days ago. OpenACC bug Medium Prio TOPIC P
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
UI5/webcomponents#14273 · 3 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)May be free again @PetyaMarkovaBogdanova claimed this 33 days ago, and no pull request is open. Openbug Medium Prio TOPIC P
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
UI5/webcomponents#14212 · 3 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
(ui5-search): Loading state sample is brokenPossibly taken @ndeshev claimed this 33 days ago. Openbug Low Prio released TOPIC RL
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
UI5/webcomponents#14210 · 2 comments · 1 assignee ·
Maintainers usually reply within 2 days
-
For IllustratedMessage title there should be support for setting Header levelMay be free again @plamenivanov91 claimed this 33 days ago, and no pull request is open. Openenhancement Medium Prio TOPIC P
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
UI5/webcomponents#14162 · 2 comments · 1 assignee ·
Maintainers usually reply within 2 days
All issues in UI5/webcomponents
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ohcnetwork/care_fe#17474 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100