@@ -91,20 +91,25 @@ export function ExpandablePanel({
9191 setOpen ( updatedOpen ) ;
9292 } } >
9393
94- < Collapsible . Trigger
95- className = { cls (
96- "rounded-t flex items-center justify-between w-full min-h-[52px]" ,
97- "hover:bg-surface-accent-200 hover:bg-opacity-40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40" ,
98- invisible ? "border-b px-2" : "p-4" ,
99- open ? "py-6" : "py-4" ,
100- "transition-all duration-200" ,
101- invisible && defaultBorderMixin ,
102- asField && fieldBackgroundMixin ,
103- titleClassName
104- ) }
105- >
106- { title }
107- < KeyboardArrowDownIcon className = { cls ( "transition" , open ? "rotate-180" : "" ) } />
94+ < Collapsible . Trigger asChild >
95+ < div
96+ className = { cls (
97+ "rounded-t flex items-center justify-between w-full min-h-[52px]" ,
98+ "hover:bg-surface-accent-200 hover:bg-opacity-40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40" ,
99+ invisible ? "border-b px-2" : "p-4" ,
100+ open ? "py-6" : "py-4" ,
101+ "transition-all duration-200" ,
102+ invisible && defaultBorderMixin ,
103+ asField && fieldBackgroundMixin ,
104+ titleClassName ,
105+ "cursor-pointer"
106+ ) }
107+ role = "button"
108+ tabIndex = { 0 }
109+ >
110+ { title }
111+ < KeyboardArrowDownIcon className = { cls ( "transition" , open ? "rotate-180" : "" ) } />
112+ </ div >
108113 </ Collapsible . Trigger >
109114
110115 < Collapsible . Content
0 commit comments