Skip to content

Core: scroll padding (Tailwind's scroll-p*), honoured by scroll-into-view #439

Closed

Description

@samitbasu

Decided by the user (2026-11-19), from the #401 trial. shadcn's command list has scroll-py-1 (styles/style-vega.css:382): when the highlight scrolls into view (arrow keys, typing), the browser keeps 4 px between the item and the list's edge. eggshell's scroll-into-view has no scroll padding, so ↑/↓ push the highlighted row flush against the edge, under the palette's search field, clipping its rounded top.

The decision: core Tw::scroll_p* (scroll_py, scroll_px, scroll_pt, …), honoured by every scroll-into-view: keyboard highlight, focus, scroll_into_view. Wheel and touch scrolling are unaffected, as in CSS. #401's lists use scroll_py(1.0), per shadcn (check the combobox list's source too).

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions