Skip to content

Fixed background color of dependencygraph in lightmode#700

Open
Dboy0ZDev wants to merge 2 commits intomainfrom
fix-dependencygraph-background-lightmode
Open

Fixed background color of dependencygraph in lightmode#700
Dboy0ZDev wants to merge 2 commits intomainfrom
fix-dependencygraph-background-lightmode

Conversation

@Dboy0ZDev
Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings April 13, 2026 14:28
Copy link
Copy Markdown
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

Adjusts dependency graph container styling so the background renders correctly in light mode (and respects dark mode) without relying on runtime next-themes checks.

Changes:

  • Replaced theme === "light" ? ... : ... background logic with Tailwind dark: classes for dependency graph wrappers.
  • Removed useTheme and classNames usage where no longer needed (simplifies components and reduces runtime theme branching).
  • Standardized the dependency graph container background classes across dialogs and pages.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/components/vex-rules/VexRuleDetailsDialog.tsx Uses Tailwind dark: classes for graph container; removes useTheme/classNames dependency.
src/components/DependencyDialog.tsx Uses Tailwind dark: classes for graph container; removes useTheme/classNames dependency.
src/app/(loading-group)/[organizationSlug]/projects/[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependency-risks/[vulnId]/page.tsx Updates graph wrapper background classes; adjusts theme hook usage (needs cleanup).
src/app/(loading-group)/[organizationSlug]/projects/[projectSlug]/assets/[assetSlug]/refs/[assetVersionSlug]/dependencies/graph/page.tsx Uses Tailwind dark: classes for full-page graph background; removes useTheme/classNames dependency.

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

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