fix(editor): no focus in the drawing place lands under the strip
The scroll margin now covers every native focusable of the place (tools, view chips, add buttons, the aside's controls), the strip's own commands excepted, as a real Tab walk found them hidden (I-3). A vertex chosen from the keyboard takes the focus with a scroll (M-1).
This commit is contained in:
1 parent
59e189c375
commit
966ad4fe45
4 files changed
+159
-18
No files matched your search
@@ -230,12 +230,17 @@ The edit strip (U2 Task 14) stays under the shell's top bar from 1 024 px: it is
|
||||
(above the drawing, under the loupe, the menus, the bar and the dialogs), and no
|
||||
ancestor sets an `overflow` other than visible. The bar's height (3.5 rem plus
|
||||
the safe-area inset) and the strip's (`--edit-strip-height`) are CSS variables
|
||||
of `styles/index.css`, which also feed a `scroll-margin-top` on the drawing
|
||||
place's focus targets (rows, every focusable handle through `data-focus-target`,
|
||||
the canvas box), from 1 024 px and only while the place is not `hidden`, so a
|
||||
focus or a `scrollIntoView` never lands under either. It is a margin, not a page
|
||||
`scroll-padding`: the padding made the page jump when the focus went to the
|
||||
sticky bar or strip themselves. Below 1 024 px the strip is not sticky.
|
||||
of `styles/index.css`, which also feed a `scroll-margin-top` on every focusable
|
||||
of the drawing place (links, buttons, fields, `tabindex` elements, rows through
|
||||
`data-focus-key`, handles through `data-focus-target`, the canvas box) except
|
||||
the strip's own commands, from 1 024 px and only while the place is not
|
||||
`hidden`, so a focus or a `scrollIntoView` never lands under either. It is a
|
||||
margin, not a page `scroll-padding`: the padding made the page jump when the
|
||||
focus went to the sticky bar or strip themselves, which is also why the strip's
|
||||
commands carry none. A vertex chosen from the keyboard (Delete, Backspace,
|
||||
Insert, « + ») takes the focus with a scroll, so the margin applies; one chosen
|
||||
by a pointer or a finger takes it without a scroll. Below 1 024 px the strip is
|
||||
not sticky.
|
||||
|
||||
A creation (U2 Task 7, A2, A4, A12) is drawn by the overlay too, never by the
|
||||
core, since the new shape is not in the document until « Créer »:
|
||||
|
||||
Reference in new issue
Block a user