domino-ui icon indicating copy to clipboard operation
domino-ui copied to clipboard

Stepper should allow to circumvent the forced vertical direction on small devices

Open NickGaens opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. A Stepper with a horizontal direction will force itself to switch to the vertical direction when viewed on a 'small' device, e.g. a portrait iPad.

Describe the solution you'd like I would like to optionally prevent the described behavior from happening. My suggestion would be to rename the forceVertical flag of Stepper to something like forceVerticalDirectionForSmall (defaulting to true) and exposing it via a setter. The MediaQuery listeners (on lines 147 and 152) should be revised accordingly then, though.

NickGaens avatar Nov 18 '20 15:11 NickGaens