fix(annotations): replace outline:none with focus-visible ring for keyboard accessibility [M7]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #235.
This commit is contained in:
@@ -265,7 +265,7 @@ let hasLiveChanges = $derived(
|
|||||||
role="application"
|
role="application"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-label={m.annotation_resize_area()}
|
aria-label={m.annotation_resize_area()}
|
||||||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; overflow: visible; outline: none;"
|
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; overflow: visible;"
|
||||||
onpointermove={handlePointerMove}
|
onpointermove={handlePointerMove}
|
||||||
onpointerup={handlePointerUp}
|
onpointerup={handlePointerUp}
|
||||||
onkeydown={handleKeyDown}
|
onkeydown={handleKeyDown}
|
||||||
@@ -330,6 +330,11 @@ let hasLiveChanges = $derived(
|
|||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
svg[role='application']:focus-visible {
|
||||||
|
outline: 2px solid #002850;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.sr-only {
|
.sr-only {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
|
|||||||
Reference in New Issue
Block a user