Skip to main content
Question

Collapsible Sidebar Bug


Arlina

Hello everyone! 👋

I’m currently designing a collapsible sidebar for a project, but I’ve run into an issue I can’t seem to solve despite watching tutorials and googling extensively.

Here’s the setup and what I’m trying to achieve:

  1. Sidebar design:
  • It contains menu items with an icon and a label.
  • When collapsed, only the icons should be visible.
  • When expanded, both the icon and label should appear.
  1. Interaction details:
  • Hovering over the menu (while collapsed) should show the label next to the icon.
  • Each menu item has two variants:
    • Expanded (icon + label)
    • Collapsed (icon only)
  • Additionally, there are three states for each variant:
    • Default
    • Hover
    • Selected

This is the desired behavior:

Vs the behavior I’m currently experiencing

I’m trying to keep the file as simple as possible, I’m using only one component per menu item, later on they’re meant to have different icons and labels. Should I have a dedicated component set per menu item?

Here’s a link to the file

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings