Skip to content

refactor: use baseline alignment for breadcrumbs items#11884

Draft
web-padawan wants to merge 2 commits into
breadcrumbs-layoutfrom
breadcrumbs-baseline
Draft

refactor: use baseline alignment for breadcrumbs items#11884
web-padawan wants to merge 2 commits into
breadcrumbs-layoutfrom
breadcrumbs-baseline

Conversation

@web-padawan
Copy link
Copy Markdown
Member

@web-padawan web-padawan commented Jun 3, 2026

Description

Extracted from #11868
Depends on #11883

  • Switched host, [part='list'], items and link/nolink wrappers to align-items: baseline so prefix icons and adjacent items stay on the first line when text wraps
  • Sized icon pseudo-elements (chevron separators + overflow ellipsis) to 1lh; chevrons mask at 90% of the box and carry opacity: 0.75, the overflow icon carries opacity: 0.8
  • Widened the overflow snapshot fixture to max-width: 160px so the trail still collapses Docs into the overlay with the slightly-wider items

Part of #7960

When an item's text wraps onto multiple lines, baseline alignment keeps
prefix icons and adjacent items on the first line rather than the box
center. Icon pseudo-elements are sized to 1lh so they fill the line
height; chevron separators mask their icon at 90% of the box. Opacity
0.75 on separators and 0.8 on the overflow icon keep both subordinate
to the text.
@web-padawan web-padawan changed the title refactor(breadcrumbs): align items to baseline refactor: use baseline alignment for breadcrumbs items Jun 3, 2026
With baseline alignment and 1lh-sized icons, items take a few extra
pixels of inline space at the same content. The visual overflow
fixtures are widened so the same set of items (Documents + Projects)
still collapses into the overlay while Home stays in the trail.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant