-
Notifications
You must be signed in to change notification settings - Fork 80
feat(shell-panel): Add displayMode
and heightScale
properties and deprecate detached
and detachedHeightScale
#6919
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
Conversation
## Summary Adding additional "left" and "right" animation classes, to support #6919 and other future needs. - Adds `calcite-animate__in-left` and `calcite-animate__in-right` classes. - Updates demo page with new classes, and updates demo page "Reset" button functionality. - Q - I am imagining for now components will set the correct animation where needed based on `rtl`. Not sure if there's a better way to make these rtl / ltr supportive with the classes themselves.
Adds animation css util
displayMode
property and deprecate detached
property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
✨✨🐚🐚🐚✨✨🐚🐚✨✨✨🐚🐚✨✨🐚✨✨✨🐚✨
✨🐚✨✨✨✨🐚✨✨🐚✨🐚✨✨🐚✨🐚✨✨✨🐚✨
✨🐚✨✨✨✨🐚✨✨🐚✨🐚✨✨🐚✨🐚✨✨✨🐚✨
✨🐚✨✨✨✨🐚✨✨🐚✨🐚✨✨🐚✨🐚✨✨✨✨✨
✨✨🐚🐚🐚✨✨🐚🐚✨✨✨🐚🐚✨✨🐚🐚🐚✨🐚✨
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
Should we update the usage files as well? I think we could do an independent pass at all components. cc @geospatialem
@@ -0,0 +1 @@ | |||
export type DisplayMode = "docked" | "detached" | "overlaid"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT about these not being in the past (dock | detach | overlay
)? Not sure about detach
though. Maybe isolate
or separate
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@macandcheese what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to match other tenses (escapeDisabled
, textEnabled
) - and keeps the existing detached
nomenclature. I think isolate
or separate
is... maybe less clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to match other tenses (escapeDisabled, textEnabled)
Those are prop names and not the values. I don't think we have anything similar for existing modes. I could be wrong.
and keeps the existing detached nomenclature. I think isolate or separate is... maybe less clear?
Nothing good ol' doc won't fix, although I do hear you on isolate
and separate
. Do you think detach
would still be less clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree since they are now values and not properties we should probably have them to not be past tense.
@macandcheese can you come up with the values? I think the only one in question is detach right? What about "float"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah that makes sense. None of the suggestions are … speaking to me, lol, but I guess “float” seems to make the most sense if we don’t want to just use “detach”? cc @asangma
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 for float
! 🎪🤡🎈
But, I'll defer to y'all whether it's detach
or float
.
} | ||
|
||
/** | ||
* Specifies the display mode - `"docked"` (full height, displays adjacent to center content), `"detached"` (not full height, content separated detached from action bar, displays on top of center content), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+@geospatialem for editorial consideration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
.....content is separated from
calcite-action-bar
, displays....
Ready for review again. |
…te-components into dris0000/shell-panel-overlaid
@ashetland @SkyeSeitz could you take a look at this Chromatic build? A few expected height changes and new story. Thanks! |
Related Issue: #6388
Summary
displayMode
on thecalcite-shell-panel
.detachedHeightScale
on thecalcite-shell-panel
, useheightScale
instead.detached
on thecalcite-shell-panel
, usedisplayMode
instead.--calcite-shell-panel-detached-max-height
, use--calcite-shell-panel-max-height
instead.Future
content-behind
on the shell and thedisplayMode
on the shell-panel were tied together more in order to prevent unwanted display combinations