Simonwep/pickr

White gap in focus-border

Open

#137 opened on Aug 10, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (4,037 stars) (281 forks)batch import
help wantedimprovement

Description

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 :)

Contributor guide