Skip to content

Document data-active attribute for active state CSS targeting#4524

Merged
ethanpalm merged 2 commits into
mainfrom
mintlify/data-active-docs-1773696894
Mar 17, 2026
Merged

Document data-active attribute for active state CSS targeting#4524
ethanpalm merged 2 commits into
mainfrom
mintlify/data-active-docs-1773696894

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented Mar 16, 2026

Summary

  • Added an "Active state targeting" section to the custom scripts page documenting the new data-active attribute on TOC items, sidebar groups, and sidebar nav items
  • Includes CSS examples for styling active/inactive states

Related: mintlify/mint#6550


Note

Low Risk
Documentation-only change that adds guidance for styling active navigation/TOC elements; no runtime code or behavior changes.

Overview
Updates customize/custom-scripts.mdx to document active-state CSS targeting by noting a data-active attribute on SidebarGroup, sidebar nav items, and TableOfContentsItem, including example selectors like sidebar-group[data-active] and toc-item[data-active].

Written by Cursor Bugbot for commit 9412a98. This will update automatically on new commits. Configure here.

@ethanpalm ethanpalm merged commit 91f8b48 into main Mar 17, 2026
6 checks passed
@ethanpalm ethanpalm deleted the mintlify/data-active-docs-1773696894 branch March 17, 2026 17:36
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.

1 participant