Skip to content

feat: Added breadcrumb container and breadcrumbs elements - #1881

Draft
rkaraivanov wants to merge 5 commits into
masterfrom
rkaraivanov/breadcrumbs
Draft

feat: Added breadcrumb container and breadcrumbs elements#1881
rkaraivanov wants to merge 5 commits into
masterfrom
rkaraivanov/breadcrumbs

Conversation

@rkaraivanov

Copy link
Copy Markdown
Member

No description provided.

@rkaraivanov
rkaraivanov force-pushed the rkaraivanov/breadcrumbs branch from a633173 to 7d8b7e9 Compare April 28, 2026 14:18
Copilot AI review requested due to automatic review settings August 4, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) and igc-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: {},
};
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