Skip to content

Commit bb56b34

Browse files
fix: label color fixes
1 parent 475f838 commit bb56b34

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

apps/showcase/demo/styled/drawer/basic-demo.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,20 @@ export default function BasicDemo() {
7777
<Menu.List className="gap-0">
7878
{navSections.map((section, sectionIndex) => (
7979
<React.Fragment key={section.label}>
80-
<Menu.Label className={`text-primary font-semibold text-xs tracking-wider px-0 py-1${sectionIndex > 0 ? ' mt-4' : ''}`}>
80+
<Menu.Label
81+
className={`text-surface-500 dark:text-surface-500 font-semibold text-xs tracking-wider py-1${sectionIndex > 0 ? ' mt-4' : ''}`}
82+
>
8183
{section.label}
8284
</Menu.Label>
8385
{section.items.map((item) => (
8486
<Menu.Item
8587
key={item.label}
86-
className={`text-sm hover:bg-transparent px-0 py-2.5${item.active ? ' text-primary font-semibold' : ''}`}
88+
className={`text-sm py-2.5${item.active ? ' text-primary font-semibold' : ''}`}
8789
>
8890
<i className={`${item.icon} text-base${item.active ? ' text-primary' : ''}`} />
8991
{item.label}
9092
{item.badge && (
91-
<Badge
92-
shape="circle"
93-
className="ml-auto"
94-
>
93+
<Badge shape="circle" className="ml-auto">
9594
{item.badge}
9695
</Badge>
9796
)}
@@ -100,9 +99,11 @@ export default function BasicDemo() {
10099
</React.Fragment>
101100
))}
102101

103-
<Menu.Label className="text-primary font-semibold text-xs tracking-wider px-0 py-1 mt-4">RECENT</Menu.Label>
102+
<Menu.Label className="text-surface-500 dark:text-surface-500 font-semibold text-xs tracking-wider py-1 mt-4">
103+
RECENT
104+
</Menu.Label>
104105
{recentItems.map((item) => (
105-
<Menu.Item key={item.label} className="text-sm hover:bg-transparent px-0 py-2.5">
106+
<Menu.Item key={item.label} className="text-sm py-2.5">
106107
<span className={`${item.color} w-2 h-2 rounded-full shrink-0`} />
107108
<span className="truncate">{item.label}</span>
108109
<span className="text-xs text-surface-400 ml-auto shrink-0">{item.time}</span>

0 commit comments

Comments
 (0)