Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Text color in the report #184

Unanswered
ratelChief asked this question in Q&A
Discussion options

image
why some text is white and other is black? or it's just a visual effect for better readability?

You must be logged in to vote

Replies: 1 comment

Comment options

Yes, it is for better readability. See there https://github.com/btd/rollup-plugin-visualizer/blob/master/src/treemap/color.ts#L19C20-L19C20
It checks luminance of background and tries to select either white or black.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /