Skip to content

refactor: use baseline alignment for breadcrumbs items#11884

Merged
web-padawan merged 4 commits into
mainfrom
breadcrumbs-baseline
Jun 8, 2026
Merged

refactor: use baseline alignment for breadcrumbs items#11884
web-padawan merged 4 commits into
mainfrom
breadcrumbs-baseline

Conversation

@web-padawan

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

Copy link
Copy Markdown
Member

Description

Extracted from #11868

  • 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

@web-padawan web-padawan changed the title refactor(breadcrumbs): align items to baseline refactor: use baseline alignment for breadcrumbs items Jun 3, 2026
@web-padawan web-padawan force-pushed the breadcrumbs-layout branch from 3052dd8 to 6dbbe49 Compare June 8, 2026 05:36
Base automatically changed from breadcrumbs-layout to main June 8, 2026 05:38
@web-padawan web-padawan force-pushed the breadcrumbs-baseline branch from 1f93e23 to 8185013 Compare June 8, 2026 05:47
@web-padawan web-padawan marked this pull request as ready for review June 8, 2026 05:51
@web-padawan web-padawan requested review from jouni and vursen June 8, 2026 05:51
@jouni jouni force-pushed the breadcrumbs-baseline branch from e588e2e to a5a88f8 Compare June 8, 2026 13:03
web-padawan and others added 4 commits June 8, 2026 16:22
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.
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.
@web-padawan web-padawan force-pushed the breadcrumbs-baseline branch from a5a88f8 to fe90d46 Compare June 8, 2026 13:25
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@web-padawan web-padawan removed the request for review from vursen June 8, 2026 13:49
@web-padawan web-padawan merged commit 34bdff8 into main Jun 8, 2026
10 checks passed
@web-padawan web-padawan deleted the breadcrumbs-baseline branch June 8, 2026 13:51
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.

2 participants