Skip to content

Conversation

@thisismert
Copy link
Contributor

The sidebar styles currently rely on presence-based data-active selectors, which apply active styles whenever the attribute exists.

Since data-active="false" still counts as a present attribute, this caused all sidebar items to appear active.

This PR updates the sidebar styles to use value-based selectors (data-[active=true]).

Copilot AI review requested due to automatic review settings December 14, 2025 15:33
@vercel
Copy link
Contributor

vercel bot commented Dec 14, 2025

@thisismert is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a CSS selector bug in the sidebar where presence-based data-active selectors were causing all sidebar items to appear active, even when the attribute was set to "false". The fix updates these selectors to use value-based checks (data-[active=true]) instead.

  • Updated sidebar menu button and sub-button styles to use value-based data-[active=true] selectors
  • Consolidated the font-medium style with other active state styles for better organization

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/v4/registry/styles/style-vega.css Updated .cn-sidebar-menu-button and .cn-sidebar-menu-sub-button classes to use data-[active=true] selectors
apps/v4/registry/styles/style-nova.css Updated .cn-sidebar-menu-button and .cn-sidebar-menu-sub-button classes to use data-[active=true] selectors
apps/v4/registry/styles/style-mira.css Updated .cn-sidebar-menu-button and .cn-sidebar-menu-sub-button classes to use data-[active=true] selectors
apps/v4/registry/styles/style-maia.css Updated .cn-sidebar-menu-button and .cn-sidebar-menu-sub-button classes to use data-[active=true] selectors
apps/v4/registry/styles/style-lyra.css Updated .cn-sidebar-menu-button and .cn-sidebar-menu-sub-button classes to use data-[active=true] selectors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shadcn shadcn added the area: roadmap This looks great. We'll add it to the roadmap, review and merge. label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: roadmap This looks great. We'll add it to the roadmap, review and merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants