-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat(shell-panel): Add resizable property to allow resizing of content. #2770 #3535
Conversation
This is awesome - really like the attention paid to home / end / shift + nudges. Want me to take a crack at styling? |
Yes plz! |
Do you think adding an event that emits the px width at interaction end would be useful? If an app wants to save a user's last width, for example. |
Yeah, i was considering an event. I think we could add it if we think its beneficial. However, nowadays users can just use a resize observer too. |
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.
Awesome! Just had some suggestions and nitpicks. Looks like a great enhancement! I'll defer to @Esri/calcite-design-representatives for the styling-side of things.
@jcfranco checked in fixes. |
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.
🎉 🌮 🦖
@asangma did you have any thoughts on design? I think it's tough to use any kind of handle affordance because of potential overlap with content. Below shows the separator while hovering anywhere in the panel, to increase visibility of feature a bit. I looked at many examples of this functionality and most do not provide anything except the hover state while over the 1px separator. Below is 2px, feel free to provide feedback here! |
Maybe we should just have an invisible div that is positioned above the content on the side? |
We could do that but I kind of like just using the |
Hmmm...my initial thought is to have the "grab-able" area fatten up on focus/hover. But I'll pull and build and have a look. |
As far as the |
@asangma |
Let me know if I should create a branch with the above video styles from this one. I think the 2px / hover and focus affordance while over shell panel is a good middle ground, I worry about jumpiness if that pixel width increases further on hover. |
@macandcheese just check them in here. I don't think we need a separate branch. |
Added styles if ya want to take another look. The |
Do we just want to disable resizing when a panel is detached? |
yeah...I think so. |
I meant when |
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.
Related Issue: #2770
Summary
feat(shell-panel): Add resizable property to allow resizing of content.
resizable
property to turn this feature on.intlResize
property for resize aria label.Todo
Styling