Skip to content

Commit

Permalink
Feature/f 72 text in white for dark bg in light theme e g blue button…
Browse files Browse the repository at this point in the history
… in (#43)

* fix: yarn isntall

* fix: text white in light mode

---------

Co-authored-by: Haidong Xu <[email protected]>
  • Loading branch information
Esoteriker and Haidong Xu authored Nov 18, 2024
1 parent 34b4f72 commit 4d41f97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export function Sidebar() {
startContent={item.icon && <NextImage src={item.icon} alt={item.label} width={24} height={24} />}
key={item.key}
variant={selectedMapType === item.key ? undefined : 'light'}
className={clsx('justify-start', selectedMapType === item.key && 'bg-primary')}
className={clsx(
'justify-start dark:text-white',
selectedMapType === item.key ? 'bg-primary text-white' : 'text-black'
)}
onClick={() => setSelectedMapType(item.key)}
>
{item.label}
Expand All @@ -76,7 +79,7 @@ export function Sidebar() {
</CardBody>
<CardFooter>
<div className="flex flex-col gap-1">
<Button radius="full" onClick={() => setIsModalOpen(!isModalOpen)} size="sm" className="w-fit">
<Button radius="full" onClick={() => setIsModalOpen(!isModalOpen)} size="sm" className="w-fit text-white">
SUBSCRIBE
</Button>
<PopupModal
Expand Down

0 comments on commit 4d41f97

Please sign in to comment.