Skip to content

Improve text contrast in schema visualizer nodes#131

Open
ivanauth wants to merge 2 commits intoauthzed:mainfrom
ivanauth:fix/issue-113-visualizer-contrast
Open

Improve text contrast in schema visualizer nodes#131
ivanauth wants to merge 2 commits intoauthzed:mainfrom
ivanauth:fix/issue-113-visualizer-contrast

Conversation

@ivanauth
Copy link
Contributor

@ivanauth ivanauth commented Mar 20, 2026

Fixes #113

Adds WCAG-based luminance check to auto-select black or white text based on the node's background color, ensuring labels are always readable.

Screenshot 2026-03-20 at 3 30 03 PM

The schema and relationship visualizers showed connection handles on
nodes that weren't functional, creating visual noise. Setting
nodesConnectable to false removes the handles entirely.

Closes authzed#112
@vercel
Copy link

vercel bot commented Mar 20, 2026

@ivanauth is attempting to deploy a commit to the authzed Team on Vercel.

A member of the Team first needs to authorize it.

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.

Schema visualizer has contrast issues with automatically selected colors

1 participant