Tradeshift / tradeshift-ui

The Tradeshift UI Library & Framework
https://ui.tradeshift.com
Other
33 stars 45 forks source link

[Sidebar] Add functionality to open sidebar from the left side #858

Closed romeldris closed 5 years ago

romeldris commented 5 years ago

Is your feature request related to a problem? Please describe. We use the Sidebar for our navigation in Go and in mobile, when we open the sidebar it comes from the right side like an aside. We would like the Sidebar to be able to open from the left instead.

Describe the solution you'd like To be able to set a property for the Sidebar so that when it opens it will open from the left instead of the right.

Describe alternatives you've considered We considered rewriting our Sidebar similar to how Tradeshift Platform does it and remove the use of the Sidebar component entirely. This would be a lot more work than updating the UI components we feel.

zdlm commented 5 years ago

Hi. We release the new version (12.3.1) of ts.ui. The sidebar will show from left to right on mobile, if the sidebar is before the content ,which means shows on the left in desktop. https://ui.tradeshift.com/v12/#components/sidebars/