Skip to content

Update from code changes: document Tree highlight prop - #6843

Open
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/cecfcf7e
Open

Update from code changes: document Tree highlight prop#6843
mintlify[bot] wants to merge 4 commits into
mainfrom
mintlify/cecfcf7e

Conversation

@mintlify

@mintlify mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

The Tree component gained an optional highlight prop on Tree.File and Tree.Folder for marking the active item. Highlighting a folder also tints its descendants so the active path stays visible when the folder is expanded. This PR adds a new "Highlight the active path" section with an example and documents the prop under Tree.File and Tree.Folder properties in English, Spanish, and French.

Triggering code PR: https://github.com/mintlify/mint/pull/9696

Changes

  • components/tree.mdx: added "Highlight the active path" section and highlight prop entries.
  • es/components/tree.mdx: translated section and prop entries; removed the now-inaccurate "only accepts name" note.
  • fr/components/tree.mdx: translated section and prop entries; removed the now-inaccurate "only accepts name" note.

@mintlify

mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Jul 31, 2026, 8:23 PM

@mintlify

mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jul 31, 2026, 8:23 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify
mintlify Bot requested a review from pqoqubbw July 31, 2026 20:21
@pqoqubbw

Copy link
Copy Markdown
Contributor

@mintlify document highlight color variables as well. for reference https://base-ui.com/react/handbook/styling#css-variables

@mintlify

mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Documented the CSS variables that let readers customize the Tree highlight colors across all four languages.

@pqoqubbw

Copy link
Copy Markdown
Contributor

@mintlify no user should set only --tree-highlight variable to Tree root component to override

@mintlify

mintlify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Corrected the highlight customization to use the single --tree-highlight variable set on the Tree root.

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.

3 participants