File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 & ::-webkit-details-marker {
5151 display : none;
5252 }
53+
54+ .chevron {
55+ @apply size-3
56+ shrink-0
57+ text-neutral-500
58+ motion-safe:transition-transform
59+ dark:text-neutral-200;
60+ }
5361 }
5462
5563 .subGroup [open ] > .summary {
5664 @apply text-brand-600
5765 dark:text-brand-400;
66+
67+ .chevron {
68+ @apply text-brand-600
69+ dark:text-brand-400
70+ rotate-180;
71+ }
5872 }
5973
6074 .subItemList {
Original file line number Diff line number Diff line change 1+ import { ChevronDownIcon } from '@heroicons/react/24/outline' ;
12import classNames from 'classnames' ;
23
34import SidebarItem from '#ui/Containers/Sidebar/SidebarItem' ;
@@ -44,7 +45,10 @@ const renderItems = (
4445 return (
4546 < li key = { link } >
4647 < details className = { styles . subGroup } open = { isOpen } >
47- < summary className = { styles . summary } > { label } </ summary >
48+ < summary className = { styles . summary } >
49+ { label }
50+ < ChevronDownIcon className = { styles . chevron } />
51+ </ summary >
4852 < ul className = { styles . subItemList } >
4953 { renderItems ( subItems , props , pathname ) }
5054 </ ul >
You can’t perform that action at this time.
0 commit comments