-
Notifications
You must be signed in to change notification settings - Fork 1
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
Collapsible Component #127
Conversation
… should be collapsible, however it still needs some styling
With the new design, do we still need to re-implement |
Not sure, I didn't know |
What I mean is to instead of creating a |
I'm not completely sure how that would work, do you mean something like having a prop passed which determines whether the Content pane should be collapsible then? |
I'm thinking that we don't want to do that since every Content pane would have to be client side then, but maybe the benefit of less duplication is worth it. |
I would solve this by replacing:
with:
Since with the new design you propose I cannot see why we would create a derivative of (Side note, I noticed that |
That seems to work great honestly, I'll look at replacing it with that solution. |
You could probably make the component entirely server-side by using a hidden checkbox and CSS, similarly to the touchscreen version of header dropdown links |
I was wrong about the client side issue btw, Collapsible just needed to be dropped in like you showed. Not sure why it wasn't used 😅 |
@GAsplund thoughts now? |
I think it's fine to keep using a client component here, it shouldn't have any noticeable impact |
Overall, I like it! Maybe move the header out of the collapsible so that it won't have a chance of being hidden (and imo makes more sense cuz it's not part of lunch contents). I would also point out that we would probably like to minimize hydration and bundle size, so keeping client-side code to a minimum is always preferable. If you don't want to change it then that's fine, but I will probably do a pass over it later if that's the case. |
What you're saying sounds good, if you've got time I'd love to see how to do it with checkboxes and CSS instead! We'd probably wanna do the same for the |
If it can/should be done for the nav drawer as well then I'm probably ready to approve this (once it's marked ready). I can get a fix for both elements later. |
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.
LGTM
Added a drop in replacement to ContentPane which allows for dropdown.
It's not done being styled yet. Send help I suck at CSS.