question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#FFF circle color picker selected state on white background

See original GitHub issue

If you use a CirclePicker color of #fff (white) and put it on a white background, the box shadow color is white and the ‘selected’ circle that appears is also… white. This leaves you with basically an invisible color picker.

I would propose that if one of the CirclePicker colors is #fff then make the box shadow color #000 by default and change the ‘selected’ circle that appears to additionally include a #000 colored border on it.

I know I can override this with CSS but I feel this shouldn’t need to be overridden.

I would make a ‘pull request’ to offer these changes for you but I don’t quite understand how pull requests work. I don’t get why it’s asking me to compare branches when all I wish to do is submit a single file.

Edit With that said, how exactly do I override the default CSS? I attempted to copy react-color/lib/components/circle/circle.js and react-color/lib/components/circle/CircleSwatch but I just get an error any time I click the color…? screenshot 2018-08-24 at 07 06 57

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
casesandbergcommented, Jan 23, 2019

Hmm, maybe we need to do something custom for the white swatch. Maybe we should add a slight border to it or something?

1reaction
jeffsheetscommented, Dec 9, 2021

@bruno-silva5 that’s nice with the CSS title selector! Thanks, I’m going to modify ours to be pure CSS too!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Choose colors in Adobe Photoshop
Learn how to work with various tools to choose colors in Adobe Photoshop. ... color is black, and the default background color is...
Read more >
React Color
In this case, the color picker will initialize with the color #fff . When the color is changed, handleChangeComplete will fire and set...
Read more >
Apply paints with the color picker – Figma Help Center
Click and drag the white circle to adjust the color. Click the to select the eyedropper tool. This allows you to select any...
Read more >
Color enumeration and ColorFade, ColorValue, and RGBA ...
Color enumeration ColorValue RGBA Color.AliceBlue ColorValue( "#f0f8ff" ) ColorValue( "aliceblue" ) RGBA( 240, 248, 25... Color.Aqua ColorValue( "#00ffff" ) ColorValue( "AQUA" ) RGBA( 0, 255,...
Read more >
<color> - CSS: Cascading Style Sheets - MDN Web Docs
By definition, red=0deg=360deg, with the other colors spread around the circle, so green=120deg, blue=240deg, etc. As an <angle> , it implicitly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found