iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

Add `controlWidgetVisibility` preview feature #856

Closed GerardasB closed 4 months ago

GerardasB commented 4 months ago

Changes

This PR adds a controlWidgetVisibility preview feature which renders additional UI elements to allow the end user of the layout to control widget visibility.

Description Image
Add widget and Close widget buttons in a widget action dropdown Screenshot 2024-05-31 at 13 43 55
Add widget and Close widget as separate title bar buttons Screenshot 2024-05-31 at 13 49 33
In case all widgets are hidden, a dropdown button is rendered in the bottom right of the navigation area Screenshot 2024-05-31 at 13 45 09

Additional changes:

Testing

Added a storybook story.

GerardasB commented 4 months ago

Add widget will auto-expand once the ellipsis is clicked on safari. This is fixed w/ iTwinUI version bump https://github.com/iTwin/appui/pull/855