refactor: use baseline alignment for breadcrumbs items#11884
Draft
web-padawan wants to merge 2 commits into
Draft
refactor: use baseline alignment for breadcrumbs items#11884web-padawan wants to merge 2 commits into
web-padawan wants to merge 2 commits into
Conversation
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Extracted from #11868
Depends on #11883
[part='list'], items and link/nolink wrappers toalign-items: baselineso prefix icons and adjacent items stay on the first line when text wraps1lh; chevrons mask at 90% of the box and carryopacity: 0.75, the overflow icon carriesopacity: 0.8max-width: 160pxso the trail still collapses Docs into the overlay with the slightly-wider itemsPart of #7960