daffodil icon indicating copy to clipboard operation
daffodil copied to clipboard

feat(design)!: update breadcrumb component to support truncation

Open xelaint opened this issue 9 months ago • 2 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [ ] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/develop/CONTRIBUTING.md#commit
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Fixes: #3513

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

xelaint avatar Mar 19 '25 21:03 xelaint

via css:

  • hide 2nd to second to last items on mobile

Proposed new usage:

<nav>
	<daff-breadcrumb>
		<a daffBreadcrumbItem [link]="">Breadcrumb Label</a>
	</daff-breadcrumb>
</nav>

Last breadcrumb item should not be clickable/linked. Last breadcrumb item should have the class active added to it.

xelaint avatar Mar 20 '25 18:03 xelaint

Screen Shot 2025-09-19 at 9 17 36 AM Screen Shot 2025-09-19 at 9 14 07 AM

The UI in the PR is complete, but there is still some buggy behavior that needs to be looked at. (e.g. the ellipsis to activate menu does not always work)

xelaint avatar Sep 19 '25 13:09 xelaint