design-system icon indicating copy to clipboard operation
design-system copied to clipboard

SideSheet position control

Open FredrikMWold opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

I want to be able to position the SideSheet component to the right or left side of the screen

Describe the solution you'd like

A position prop the controls the position

FredrikMWold avatar Jan 02 '24 13:01 FredrikMWold

https://github.com/equinor/design-system/pull/3200

FredrikMWold avatar Jan 02 '24 13:01 FredrikMWold

Thank you for this suggestion and pull request! We would like to see a use case to better evaluate as we suspect that this will be in conflict with the side bar. Can you please give us an example?

BirteThornquist avatar Jan 04 '24 13:01 BirteThornquist

Yes!

We currently have an application that is essentially a big table with log entries and a form to add/edit.

That form is currently in a modal. The users want to be able to browse/copy from the table while creating/editing logs, to solve it we want to move the form to a sidesheet. We want the sidesheet on the left mostly for design reason as the application layout is actions on the left, information on the right.

We have a sidebar and explored using it for this problem, but the form is rather big and wont fit in the sidebars width. The reason for using the sidesheet is the abilty to control the width.

FredrikMWold avatar Jan 05 '24 08:01 FredrikMWold