Skip to content

[SideNav]: improvements #757

Description

@ly-tempel-bitweb

Problem

  1. There are some accessibility violations:
Image
  1. Overlay colour doesn't match Figma. Should be background: var(--general-surface-overlay);.
  2. Third Level Menu Items Parents Are Links adds a tree element to the parent when hovering or on a real mobile phone touching the "Treatments" or "Documentation" items.
Screen.Recording.2026-07-24.at.11.16.08.mov
  1. According to this example in Figma, there should be a border-bottom between dropdown groups.

  2. The size of the back icon should be 18px.

Image
  1. Add new prop collapsedText: an optional short-label field that falls back to the full text, keep the full text in the hover tooltip. Figma example with shorter texts when SideNav is collapsed.
  2. Make stories full width on mobile.
Image Image
  1. Translate stories to Estonian.
  2. Subitems don't have hover state.
Screen.Recording.2026-07-24.at.12.06.29.mov
  1. Add collapsible WithGroupTitle example to showcase that the group title changes to a separator when SideNav is collapsed. Figma: https://www.figma.com/design/jWiRIXhHRxwVdMSimKX2FF/TEDI-READY-2.66.83?m=dev&node-id=17512-144755
  2. Add props that allow consumer projects to override the sidenav.backToMainMenu and sidenav.backtoMenu texts.
  3. Change tedi-sidenav__toggle-icon transition to transition: transform 0.2s ease-in-out; so it would match with CollapseButton.
Screen.Recording.2026-07-27.at.18.05.19.mov
  1. Selected/active item shouldn't change colour on hover.
  2. Some Storybook args are missing descriptions, for example SideNav.Dropdown args.

Metadata

Metadata

Assignees

Labels

tedi-readyTEDI-Ready component issue

Type

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions