Skip to content

feat: add breadcrumbs color properties, Lumo and Aura variants#11900

Open
web-padawan wants to merge 1 commit into
mainfrom
fix/breadcrumbs-link-color
Open

feat: add breadcrumbs color properties, Lumo and Aura variants#11900
web-padawan wants to merge 1 commit into
mainfrom
fix/breadcrumbs-link-color

Conversation

@web-padawan

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

Copy link
Copy Markdown
Member

Description

Extracted from #11868

  • Added --vaadin-breadcrumbs-link-color and --vaadin-breadcrumbs-text-color properties
  • Added primary (Lumo) and accent (Aura) theme variants changing the link color

🤖 Generated with Claude Code

@web-padawan web-padawan changed the title feat(breadcrumbs): drop default link underline, add --vaadin-breadcrumbs-link-color refactor: remove breadcrumbs link underline, add link color CSS property Jun 8, 2026
@web-padawan web-padawan requested review from jouni and vursen June 8, 2026 12:14
@web-padawan web-padawan marked this pull request as draft June 8, 2026 12:24
@web-padawan web-padawan force-pushed the fix/breadcrumbs-link-color branch from 4869805 to 049414f Compare June 8, 2026 13:03

@jouni jouni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The idea was that base styles retain the distinction between links vs non-links, with the default link text color. Aura and Lumo make the opinionated decision to change that default and offer a separate variant that distinguishes between links and non-links.

The expectation is that most use cases will have all trail items as links (best practice), but in cases where some items are not interactive, the opt-in variants (accent and primary) add a bit of visual separation to them.

@jouni

jouni commented Jun 8, 2026

Copy link
Copy Markdown
Member

Arguably, the link underline could be handled similarly, that base styles retain it, and themes remove it. I simply felt that most themes would want the underline removed anyways, to reduce visual noise.

@web-padawan web-padawan force-pushed the breadcrumbs-baseline branch from a5a88f8 to fe90d46 Compare June 8, 2026 13:25
Base automatically changed from breadcrumbs-baseline to main June 8, 2026 13:51
@web-padawan

Copy link
Copy Markdown
Member Author

Thanks for the comments. I think we can proceed with the initial base styles PR instead. Closing in favor of it.

@web-padawan web-padawan closed this Jun 8, 2026
@web-padawan web-padawan reopened this Jun 9, 2026
@web-padawan web-padawan force-pushed the fix/breadcrumbs-link-color branch from 049414f to a830a01 Compare June 9, 2026 12:36
@web-padawan web-padawan changed the title refactor: remove breadcrumbs link underline, add link color CSS property feat: add breadcrumbs color properties, Lumo and Aura variants Jun 9, 2026
@web-padawan web-padawan marked this pull request as ready for review June 9, 2026 12:37
@web-padawan web-padawan requested a review from jouni June 9, 2026 12:38
@web-padawan

Copy link
Copy Markdown
Member Author

Reopened and modified this PR to include both link / text color properties + Lumo and Aura theme variants.

Expose --vaadin-breadcrumbs-text-color (defaults to
var(--vaadin-text-color-secondary)) for the trail's resting text color
and --vaadin-breadcrumbs-link-color (defaults to LinkText) for [part='link']
items. Base styles retain the distinction between links and non-link
items via the browser's default link text color. Lumo and Aura make the
opinionated decision to change that default to inherit so links and
non-link items render in the same color, and ship an opt-in variant
(theme="primary" on Lumo, theme="accent" on Aura) that restores a
distinct link color. The expectation is that most trails have all-link
items (best practice); the variants add visual separation when some
items are not interactive.
@web-padawan web-padawan force-pushed the fix/breadcrumbs-link-color branch from a830a01 to b4f9b9a Compare June 9, 2026 12:43
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

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