lucca-front
lucca-front copied to clipboard
Box-shadow used as border should be inset. Otherwise they may be cropped
IF a component use a box-shadow: 0 0 0 1px #color;
as a border, this shadow should also be defined as inset
.
Otherwise the shadow overflow it's box and could be cropped by it's parents.
Example with a callout
: the laterals shadows are cropped.
That would'nt be the case with an inset
shadow :