Skip to content

RangeControl: Add support for two inputs #55326

@danieldudzic

Description

@danieldudzic

What problem does this address?

Following the concept of Intrinsic design requires a shift in thinking about (layout-related) settings. We want to build for "every" screen size, but we also want to provide users with more control over the way content is displayed in various screen-size scenarios. The Min/Max approach seems to be a reasonable choice here, and it would be great to have UI that's easy to use for this.

Example - Product Gallery - Thumbnails

We are currently working on the new Product Gallery block and run into multiple tricky layouts and design decisions.

One of those is how to best display Thumbnails in various scenarios.

We have decided to provide users with the ability to select Min/Max number of columns that the Thumbnails will be displayed in. (Min helps when it comes to collapsing down on smaller viewports): woocommerce/woocommerce-blocks#11148

Below is a very rough example.
lT7c4Eog4B

What is your proposed solution?

We'd like to provide a min/max setting for controlling this. Currently the RangeControl component supports only one input, but I believe this is a perfect use case for supporting two inputs:

Cursor_i_Single_Product_‹_Template_‹_Editor_‹_newproductgallery_—_WordPress_png___152___Warstwa_11_RGB_8___

number of columns

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions