pickr icon indicating copy to clipboard operation
pickr copied to clipboard

White gap in focus-border

Open simonwep opened this issue 5 years ago • 2 comments

Improvement

Currently, if a custom color is applied to .pcr-app there's a white, non-transparent, gap between the focus border and the element (which looks really ugly in a dark envieroment): image Unfortunately it's not possible to use any pseudo-elements (most of them are in-use and can't be removed because of stacking-issues).

The current focus-border is made through a double box-shadow where the first one makes the gap:

box-shadow: 0 0 0 1px rgba(white, 0.85), 0 0 0 3px $color;

But this causes a white (or colored) gap. Already tried to fix it with double-borders, but this would be really difficult since the focus-border is applied to many elements with different pseudo-elements and sizes.

Any help is highly appreciated :)

simonwep avatar Aug 10 '19 19:08 simonwep

Is there any reason

border: 1px solid transparent;
box-shadow: 0 0 0 3px $color;

won't work?

sdbrannum avatar Oct 07 '19 20:10 sdbrannum

@sdbrannum The idea is awesome! The only problem is that the background behind the border is still where which causes a transparency-pattern appearing behind the previous-color-button. Box-shadow also shrinks the element-size (I'm using box-sizing: border-box) which looks somehow weird and glitchy :/

simonwep avatar Oct 08 '19 18:10 simonwep