-
Notifications
You must be signed in to change notification settings - Fork 80
[Shell Panel] Add Overlay display mode #6388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@macandcheese how is this different from the |
Much of this functionality does focus on the "without
So, yep, in some ways these proposed changes do create an alternative to using |
Nevermind. I understand. Do we really need all these modes? Could we get rid of the detached one? |
Yes - but it could be changed to be a sibling value of "docked" and "overlay" - instead of a separate and mutually exclusive property. So, a Shell Panel could have a When slotted within a Shell with
When slotted within a Shell without
The last bullet point is really value add for this feature, if there's a way to do it within our existing structure that would be great. Talking through now - does it seem like "detached" would be better not being mutually exclusive to the newly proposed mode and instead a sibling value? |
… deprecate `detached` and `detachedHeightScale` (#6919) **Related Issue:** #6388 ## Summary - Adds the property `displayMode` on the `calcite-shell-panel`. - DisplayMode = "dock" | "float" | "overlay"; - Deprecates the property `detachedHeightScale` on the `calcite-shell-panel`, use `heightScale` instead. - Deprecates the property `detached` on the `calcite-shell-panel`, use `displayMode` instead. - Deprecates the CSS property `--calcite-shell-panel-detached-max-height`, use `--calcite-shell-panel-max-height` instead. - Moves the resize handle to inside of the content node. - Test app - tests ## Future - It would be nice if `content-behind` on the shell and the `displayMode` on the shell-panel were tied together more in order to prevent unwanted display combinations --------- Co-authored-by: Adam <[email protected]>
Verified with https://codepen.io/geospatialem/pen/QWZJQdE in |
Uh oh!
There was an error while loading. Please reload this page.
Description
As proposed, add an "overlay" mode to Shell Panel that allows it to position over any content adjacent to it in the shell.
Acceptance Criteria
As proposed, this mode will allow users to use a Shell Panel to overlay other content in the main slotted content area of Shell.
Relevant Info
More information in Confluence proposal
Which Component
Shell Panel
Example Use Case
At a smaller viewport size, it may be desirable to use Shell Panel as an "overlay". This will allow consuming apps to change the property and gracefully hide "shown on larger viewport" shell panels.
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: