Skip to content

docs: add Tree Grid subtree highlight example (#6211) (CP: v25.3) - #6237

Merged
sissbruecker merged 1 commit into
v25.3from
cherry-pick-6211-to-v25.3-1790876024817
Oct 1, 2026
Merged

sissbruecker merged 1 commit into
v25.3from
cherry-pick-6211-to-v25.3-1790876024817

Conversation

@vaadin-bot

Copy link
Copy Markdown
Contributor

No description provided.

Adds a **Recipes** sub-page to the Tree Grid documentation
(`articles/components/tree-grid/recipes.adoc`), with a **Highlighting a
Subtree** (Flow) section as its first recipe.

The new rendered `TreeGridSubtreeHighlight` example gives every
descendant of the selected row a `selected-subtree` part name. The part
name generator checks whether the selected item is an ancestor of the
rendered item. Because part names are generated only when a row is
rendered, the selection listener refreshes the descendants of both the
previously and the newly selected item.

The styling (`tree-grid-subtree-highlight.css`, imported in
`styles.css`) sets two properties on
`vaadin-grid::part(selected-subtree)`, because the themes use different
ones for the cell background:

- `--vaadin-grid-cell-background-color` for Aura
- `--vaadin-grid-cell-background` for Lumo

This PR also adds the `vaadin-grid-tree-toggle` import to
`tree-grid-imports.ts`, the preimport for Java-only Tree Grid examples.
Without it, the hierarchy column showed no toggles on pages where no Lit
example imports the tree column.

This change was split out of #6188.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
@sissbruecker
sissbruecker merged commit 33dafe5 into v25.3 Oct 1, 2026
8 of 9 checks passed
@sissbruecker
sissbruecker deleted the cherry-pick-6211-to-v25.3-1790876024817 branch October 1, 2026 17:42
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