[DS] Sidebar: search bar position and section chevrons #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Design System Changes Needed
Two small fixes for the composable
Sidebarcomponent.1. Search bar renders above Header
Current:
SidebarRootrenders the search input before{children}(line 203 in Sidebar.tsx), so it appears aboveSidebar.Header.Expected: Search should render between the Header and the first Section.
Fix options:
{children}that areSidebar.Header— requires detecting Header childrenSidebar.Headeroutputs below itself2. Section chevrons are redundant
Current:
SidebarSectionrenders aChevronRight/ChevronDownicon on every section header (line 127-128). Clicking the entire header already toggles expand/collapse.Request: Remove the chevron from section headers entirely. The expand/collapse behavior via header click is sufficient — the chevron adds visual noise without functionality.
If removing entirely is too opinionated, add an optional
hideChevron?: booleanprop that defaults totrue(hidden).Files:
src/design-system/layout/Sidebar/Sidebar.tsx—SidebarRoot(search position),SidebarSection(chevron)Both fixes implemented in
cameleer/design-system@0cf696c:Sidebar.Headerand the firstSidebar.SectionusingChildren.toArrayto locate the Header child.ChevronRight/ChevronDown. The entire header row (icon + label) is clickable to toggle.Fixed in DS v0.1.25, bumped in server
2265ebf. Search bar now renders below Header, section chevrons removed.