diff --git a/lib/folk-shape.ts b/lib/folk-shape.ts index b84f161..46e5049 100644 --- a/lib/folk-shape.ts +++ b/lib/folk-shape.ts @@ -97,11 +97,15 @@ const styles = css` outline: none; } - :host(:hover), - :host(:state(highlighted)) { + :host(:hover) { outline: none; } + :host(:state(highlighted)) { + outline: 2px solid #3b82f6; + outline-offset: 2px; + } + :host(:state(move)), :host(:state(rotate)), :host(:state(resize-top-left)), diff --git a/website/canvas.html b/website/canvas.html index 016c3e6..a04dceb 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -442,6 +442,16 @@ overflow: visible; } + #select-rect { + position: fixed; + border: 1.5px solid #3b82f6; + background: rgba(59, 130, 246, 0.08); + border-radius: 2px; + pointer-events: none; + z-index: 9998; + display: none; + } + /* Touch-friendly resize handles */ @media (pointer: coarse) { folk-shape::part(resize-top-left), @@ -840,6 +850,7 @@