@@ -11,7 +11,6 @@ import {
1111 GripVertical ,
1212 Pencil ,
1313 Plus ,
14- Search ,
1514 Star ,
1615 StarOff ,
1716 Trash2 ,
@@ -48,6 +47,7 @@ import {
4847import type { ChannelSection } from "@/features/sidebar/lib/useChannelSections" ;
4948import type { Channel } from "@/shared/api/types" ;
5049import { cn } from "@/shared/lib/cn" ;
50+ import { HashSearch } from "@/shared/ui/icons" ;
5151
5252// ---------------------------------------------------------------------------
5353// Shared styles
@@ -56,7 +56,7 @@ import { cn } from "@/shared/lib/cn";
5656const SECTION_LABEL_BUTTON_CLASS =
5757 "group/section-label flex w-fit max-w-[calc(100%-3rem)] cursor-pointer appearance-none items-center gap-1 text-left transition-colors hover:text-sidebar-foreground focus-visible:text-sidebar-foreground" ;
5858const SECTION_LABEL_CHEVRON_CLASS =
59- "relative size-2.5 shrink-0 opacity-0 text-sidebar-foreground/45 transition-[color,opacity] group-hover/sidebar-section:opacity-100 group-hover/sidebar- section:text-sidebar-foreground group-hover/section- label:opacity-100 group-hover/section-label:text-sidebar-foreground group- focus-within/sidebar-section:opacity-100 group-focus-within/sidebar-section:text-sidebar-foreground group-focus- visible/section-label:opacity-100 group-focus-visible/section-label:text-sidebar-foreground " ;
59+ "relative size-2.5 shrink-0 text-current opacity-0 transition-[color,opacity] group-hover/sidebar-section:opacity-100 group-hover/section- label:opacity-100 group-focus-within/sidebar-section:opacity-100 group-focus-visible/section-label:opacity-100" ;
6060const SECTION_LABEL_CHEVRON_ICON_CLASS =
6161 "absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2" ;
6262
@@ -261,18 +261,24 @@ function SectionHeaderActions({
261261 { onBrowseClick ? (
262262 < button
263263 aria-label = { browseAriaLabel }
264- className = { SECTION_ICON_BUTTON_CLASS }
264+ className = { cn (
265+ SECTION_ICON_BUTTON_CLASS ,
266+ SECTION_ACTION_VISIBILITY_CLASS ,
267+ ) }
265268 onClick = { onBrowseClick }
266269 title = { browseAriaLabel }
267270 type = "button"
268271 >
269- < Search className = "h-4 w-4" />
272+ < HashSearch className = "h-4 w-4" />
270273 </ button >
271274 ) : null }
272275 { onCreateClick ? (
273276 < button
274277 aria-label = { createAriaLabel }
275- className = { SECTION_ICON_BUTTON_CLASS }
278+ className = { cn (
279+ SECTION_ICON_BUTTON_CLASS ,
280+ SECTION_ACTION_VISIBILITY_CLASS ,
281+ ) }
276282 onClick = { onCreateClick }
277283 type = "button"
278284 >
@@ -416,8 +422,8 @@ export function ChannelGroupSection({
416422 ) : null ;
417423
418424 const sectionContent = (
419- < SidebarGroup className = { groupClassName } >
420- < div className = "group/sidebar-section relative" >
425+ < SidebarGroup className = { cn ( "group/sidebar-section" , groupClassName ) } >
426+ < div className = "relative" >
421427 < SidebarGroupLabel asChild >
422428 < button
423429 aria-controls = { contentId }
@@ -535,13 +541,12 @@ export function CustomChannelSection({
535541 < SortableSectionShell sectionId = { section . id } >
536542 { ( { dragHandleProps, isDragging } ) => (
537543 < DroppableSectionBody sectionId = { section . id } >
538- < SidebarGroup className = { cn ( isDragging && "opacity-30" ) } >
544+ < SidebarGroup
545+ className = { cn ( "group/sidebar-section" , isDragging && "opacity-30" ) }
546+ >
539547 < ContextMenu >
540548 < ContextMenuTrigger asChild >
541- < div
542- className = "group/sidebar-section relative"
543- { ...dragHandleProps }
544- >
549+ < div className = "relative" { ...dragHandleProps } >
545550 < SidebarGroupLabel asChild >
546551 < button
547552 aria-controls = { contentId }
0 commit comments