Skip to content

Commit 6fe3601

Browse files
fix: apply breadcrumbs font-size var to overlay items in base styles (#12085) (CP: 25.2) (#12090)
This PR cherry-picks changes from the original PR #12085 to branch 25.2. --- #### Original PR description > ### Motivation > > In base styles, `--vaadin-breadcrumbs-font-size` did not control the font size of items inside `vaadin-breadcrumbs-overlay`, unlike Lumo and Aura. > > ### Reproduction > > ```css > vaadin-breadcrumbs { > --vaadin-breadcrumbs-font-size: 12px; > } > ``` > > The overflow overlay items stayed at the default 16px. > > ### Changes > > Overlay items are slotted into the overlay's shadow content, so they inherit `font-size` from the overlay content in the flattened tree, not from the breadcrumbs host. Set `font-size` from the variable directly on the item host, matching Lumo and Aura. The `1em` fallback resolves to the inherited value, so rendering is unchanged when the variable is unset. > > Fixes #12012 > > --- > > 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
1 parent 2ead7f1 commit 6fe3601

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/breadcrumbs/src/styles/vaadin-breadcrumbs-item-base-styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const breadcrumbsItemStyles = css`
1111
display: inline-flex;
1212
align-items: baseline;
1313
flex-shrink: 0;
14+
font-size: var(--vaadin-breadcrumbs-font-size, 1em);
1415
}
1516
1617
:host([hidden]) {

0 commit comments

Comments
 (0)