Skip to content

[css-forms-1] Ensure ::picker() options are always reachable on small viewports #13526

@nt1m

Description

@nt1m

After doing some testing for various customizable select demos on mobile, @smfr found that the options were not reachable on mobile on long selects (take the color select from https://codepen.io/argyleink/pen/wvYrZEV for instance), which is an usability regression from the native select.

I suggest adding this to the UA sheet:

::picker(select) {
  max-height: 100vh;
}

(not sure if it should be dvh/svh or vh)

This seems to make the picker limit its height to the viewport to which point you can scroll within the picker.

cc @lukewarlow @josepharhar @fantasai

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions