feat: Added breadcrumb container and breadcrumbs elements - #1881
Draft
rkaraivanov wants to merge 5 commits into
Draft
feat: Added breadcrumb container and breadcrumbs elements#1881rkaraivanov wants to merge 5 commits into
rkaraivanov wants to merge 5 commits into
Conversation
rkaraivanov
force-pushed
the
rkaraivanov/breadcrumbs
branch
from
April 28, 2026 14:18
a633173 to
7d8b7e9
Compare
- Updated API documentation for the breadcrumb component.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces new Breadcrumbs UI components to the Ignite UI Web Components library, including Storybook documentation, styling scaffolding, and unit tests.
Changes:
- Added
igc-breadcrumbs(container) andigc-breadcrumb(item) components with ARIA roles and separator propagation via Lit context. - Added Storybook stories demonstrating default usage, custom separators, prefix/suffix slots, and long wrapping trails.
- Added initial SCSS base styles, theming aggregator stub, tests, and public exports.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| stories/breadcrumbs.stories.ts | Adds Storybook stories and docs for Breadcrumbs variants. |
| src/index.ts | Exports the new breadcrumb components from the package entrypoint. |
| src/components/common/context.ts | Adds a new Lit context used to propagate breadcrumb separator configuration. |
| src/components/breadcrumb/themes/themes.ts | Introduces the breadcrumb theme aggregator (currently minimal). |
| src/components/breadcrumb/themes/breadcrumbs.base.scss | Base styles for the breadcrumbs container layout. |
| src/components/breadcrumb/themes/breadcrumb.base.scss | Base styles for breadcrumb items, separator, current state, and RTL handling. |
| src/components/breadcrumb/breadcrumbs.ts | Implements the breadcrumbs container and provides separator context + list semantics. |
| src/components/breadcrumb/breadcrumbs.spec.ts | Adds accessibility + behavior tests for breadcrumb and breadcrumbs behavior. |
| src/components/breadcrumb/breadcrumb.ts | Implements an individual breadcrumb item with slots and separator rendering. |
Comment on lines
+81
to
+83
| render: () => html` | ||
| <nav aria-label="Breadcrumb"> | ||
| <igc-breadcrumbs> |
Comment on lines
+60
to
+63
| private readonly _separatorConsumer = createAsyncContext( | ||
| this, | ||
| breadcrumbsContext | ||
| ); |
Comment on lines
+37
to
+44
| [part='separator'] { | ||
| color: var(--_separator-color); | ||
|
|
||
| &:dir(rtl) igc-icon, | ||
| &:dir(rtl) ::slotted(igc-icon) { | ||
| transform: rotateY(180deg); | ||
| } | ||
| } |
Comment on lines
+3
to
+6
| export const all: Themes = { | ||
| light: {}, | ||
| dark: {}, | ||
| }; |
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.
No description provided.