Skip to content

fix(ui): focusing a low field scrolls the whole drawer off-screen #326

Closed

Description

@antontcymbal

Summary

The browser can scroll a drawer panel itself. Focusing a form field that sits low in a phone sheet (for example the registration form), or behind the sticky footer, slides the whole sheet up or sideways and nothing scrolls it back. The header ends up off-screen, with a blank band and a floating footer.

Approach

The drawer content is overflow-hidden (src/components/atoms/Drawer/Drawer.tsx). overflow: hidden is still a scroll container, so focus and scrollIntoView scroll it. Make the panel overflow-clip, which cannot scroll, and give scrolling bodies a bottom scroll padding (e.g. scroll-pb-28) so a focused field clears the sticky footer. Two independent prototype branches fixed it this way (ux/147-a-one-sheet, ux/147-b-edit-in-place); measured before the fix: panel scrollTop 329 after filling the last registration-style fields, and scrollLeft 128 on a side panel.

Acceptance criteria

  • At 390×844, focusing the last field of the registration form leaves the drawer panel's scrollTop and scrollLeft at 0, and the sheet header stays visible.

Verification checklist

  • Playwright at 390×844: open /gb/south-east/brighton/163/register, focus each input in turn, then read scrollTop/scrollLeft of the [data-vaul-drawer] element — both 0.

Activity

  1. added theissue type on Oct 25, 2026
  2. moved this from Revising to Proposed in SYDevelopers Technical Roadmapon Oct 25, 2026
  3. Ardnived commented on Oct 25, 2026

    @Ardnived
    Contributor

    @sydevs-bot implement

  4. moved this from Proposed to Approved in SYDevelopers Technical Roadmapon Oct 25, 2026
  5. added
    bot:working
    on Oct 25, 2026
  6. sydevs-bot commented on Oct 25, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 19:26Z implement · attempt 1 · session · done
    • 19:26Z implement · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  7. removed
    bot:working
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    Medium

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions