fix(editor): no strip scroll margin on a dialog's controls

This commit is contained in:
bchanot committed 2026-11-19 15:18:05 +01:00
1 parent 303e153777
commit b0344a4af6
2 files changed
+12 -12

No files matched your search

+4 -4
View File
@@ -18,9 +18,9 @@ body,
page when the focus went to the sticky bar or strip themselves (probed, U2 Task 14), and a
page-wide rule outlived a hidden strip. Every focusable of the place gets it (rows,
handles, the canvas box, tools, view chips, the aside's controls: a Tab walk probed them
under the strip, rev 4 I-3), except the strip's own commands: their focus must not
scroll. The place is `hidden` while another section shows, and the strip is sticky from
1 024 px only. */
under the strip, rev 4 I-3), except the strip's own commands, whose focus must not
scroll, and a dialog's controls, which scroll inside the dialog. The place is `hidden`
while another section shows, and the strip is sticky from 1 024 px only. */
@media (min-width: 1024px) {
[data-place='annotations.drawing']:not([hidden])
:is(
@@ -32,7 +32,7 @@ body,
[tabindex],
[data-focus-key],
[data-focus-target]
):not([data-testid='edit-strip'] *) {
):not([data-testid='edit-strip'] *, dialog *) {
scroll-margin-top: calc(
var(--shell-top-bar-height) + var(--edit-strip-height) + 1.5rem
);