fix(ui): keep drag handles free of pointer focus outlines

This commit is contained in:
Codex
2026-11-17 01:55:47 +03:00
parent 8539a211ed
commit 533723883d
13 changed files with 72 additions and 19 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nodedc/ui-core",
"version": "0.7.1",
"version": "0.7.2",
"type": "module",
"files": [
"dist",
+28 -2
View File
@@ -3002,7 +3002,7 @@ textarea.nodedc-field__control {
.nodedc-workspace-window__head:focus-visible {
background: var(--nodedc-focus-surface);
box-shadow: inset 0 0 0 1px rgb(var(--nodedc-accent-rgb) / 0.22);
box-shadow: none;
}
.nodedc-workspace-window[data-maximized="true"] .nodedc-workspace-window__head {
@@ -4637,7 +4637,7 @@ textarea.nodedc-field__control {
.nodedc-editor-dock :is(.nodedc-editor-dock__tool,.nodedc-editor-dock__primary)[data-dock-corners~="bottom-left"] {border-bottom-left-radius:var(--nodedc-radius-panel);}
.nodedc-editor-dock__tool>.nodedc-window__head {flex:none;cursor:grab;touch-action:none;user-select:none;}
.nodedc-editor-dock__tool>.nodedc-window__head:active {cursor:grabbing;}
.nodedc-editor-dock__tool>.nodedc-window__head:focus-visible {outline:2px solid var(--nodedc-text-primary);outline-offset:-3px;}
.nodedc-editor-dock__tool>.nodedc-window__head:focus-visible :is(.nodedc-window__title,.nodedc-window__subtitle,.nodedc-window__actions,.nodedc-window__close,.nodedc-icon-button) {color:inherit;}
.nodedc-editor-dock__body {flex:1;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 var(--nodedc-space-3) var(--nodedc-space-3);}
.nodedc-editor-dock__tool .nodedc-inspector {width:100%;max-width:none;}
@@ -4858,3 +4858,29 @@ textarea.nodedc-field__control {
.nodedc-range[data-variant="rail"] input[type="range"] { top: 50%; height: max(100%, 24px); transform: translateY(-50%); }
.nodedc-range-rail:has(input:focus-visible) .nodedc-range-rail__value { text-decoration: underline; text-underline-offset: 2px; }
.nodedc-range-rail[data-disabled] { opacity: var(--nodedc-disabled-opacity, 0.5); }
/* Shared move handles: no browser perimeter or pointer-inherited focus flash.
Keyboard navigation retains the canonical focus surface in every window. */
:is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex] {
outline: 0;
box-shadow: none;
}
:is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex]:focus-visible {
outline: 0;
box-shadow: none;
background: var(--nodedc-focus-surface);
}
[data-nodedc-edges="flat"] :is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex]:focus-visible {
background: var(--nodedc-text-primary);
color: var(--nodedc-canvas);
}
:is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex]:focus-visible :is(.nodedc-window__title, .nodedc-window__subtitle, .nodedc-workspace-window__title, .nodedc-workspace-window__subtitle) {
color: inherit;
}
[data-nodedc-edges] :is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex][data-pointer-focus="true"],
:is(.nodedc-window__head, .nodedc-workspace-window__head)[tabindex][data-pointer-focus="true"] {
outline: 0;
box-shadow: none;
background: transparent;
color: var(--nodedc-text-primary);
}