[ui5-side-navigation-item]: expandable items with children cannot use `href` because the expand/collapse chevron is a child of the link anchor
Maintainers usually reply within 2 days
@LidiyaGeorgieva is already working on this.
Since Oct 29, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript, web-dev
- Domain
- accessibility, frontend
Research direction
Start with packages/fiori/src/SideNavigationItemTemplate.tsx to trace how the anchor and toggle icon are rendered, then read the toggle handler in packages/fiori/src/SideNavigationItem.ts. Check the component’s existing tests for expandable items and href behavior. Done when the link retains native navigation semantics while the chevron independently toggles expansion.
Written by the indexing model from the issue text.
Description
Bug Description
When a ui5-side-navigation-item is expandable (has ui5-side-navigation-sub-item children) and an href is set, the native link and the expand/collapse chevron conflict, because the chevron toggle icon is rendered inside the anchor element rather than as a sibling.
In packages/fiori/src/SideNavigationItemTemplate.tsx the item renders roughly as:
<EffectiveTag ... href={this._href} ...>
<Icon .../> {/* leading icon */}
<div class="ui5-sn-item-text">...</div> {/* label */}
<Icon
class="ui5-sn-item-toggle-icon"
onClick={this._onToggleClick} {/* expand/collapse */}
.../>
<Icon class="ui5-sn-item-external-link-icon" .../>
</EffectiveTag>
Because the chevron lives inside the <a href>:
- A click on the chevron is also a click on the link. _onToggleClick must stopPropagation() and rely on preventDefault plumbing to stop the anchor from navigating.
- Native browser link behavior (middle-click, context menu "Open in new tab", "Copy link address") now also applies to the chevron area, which is irritating.
- Consumers are effectively forced to omit href on expandable/parent items and re-implement navigation in JS to avoid the conflict which means those items lose the native link context menu entirely.
Affected Component
ui5-side-navigation-item (also ui5-side-navigation-sub-item) — package @ui5/webcomponents-fiori
Expected Behaviour
An expandable ui5-side-navigation-item should be able to carry a real href and support expand/collapse without the two interfering:
- The chevron/toggle is a separate interactive sibling of the link anchor (its own button/role), not a descendant of the
<a>. - The link part keeps native link semantics (new tab via modifier/middle-click, context menu, "copy link address").
- The chevron toggles expansion independently, without requiring stopPropagation/preventDefault handling on the consumer side.
Isolated Example
No response
Steps to Reproduce
- Render a ui5-side-navigation-item with href set and one or more ui5-side-navigation-sub-item children.
- Right-click the item; the chevron area is part of the link, so the browser's link context menu covers the toggle too.
- Drive navigation purely via href: clicking the chevron also activates the link, so expand/collapse and navigation collide.
Log Output, Stack Trace or Screenshots
No response
Priority
Medium
UI5 Web Components Version
2.27.2
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
href/target support was added in PR #7682. This report is about making it usable on expandable items by separating the chevron from the anchor. The component already has a dedicated toggle handler (_onToggleClick / _toggle() in packages/fiori/src/SideNavigationItem.ts), so the chevron could be moved onto a standalone button sibling of the link with limited change to the handler logic.
Related: #11447 (stopPropagation/preventDefault on item click) and #10603 (click-detail modifiers) are symptoms of the same single-anchor-wraps-everything structure.
Organization
No response
Declaration
- I’m not disclosing any internal or sensitive information.
- 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