Suggested changes to sl-split-panel #1834
andyjessop
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Have you seen this example? The divider exposes CSS parts, making it customizable. https://shoelace.style/components/split-panel/#customizing-the-divider |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The panel works really well, I just have a few suggestions to improve the aesthetics.
--divider-color
,--divider-color-hover
, and--divider-color-dragging
so that the look and feel can be customised.See both of these new behaviours here:
with-improvements.mov
Current behaviour here:
current.mov
I was able to get this working with the following changes:
state
property to the component, eitherdragging
oridle
..dragging
class dependent on the above state.I feel that these are minor and simple improvements, but significantly affect the overall usability of the component.
Edit: would probably also need to reset the cursor on
disconnectedCallback
. Like this:disconnected.mov
Beta Was this translation helpful? Give feedback.
All reactions