Skip to content

Commit 9d7b83f

Browse files
authored
chore: fix the theme of dropdown menu on articles page (dark mode) (#1067)
* chore: update the theme of dropdown menu on articles page (for dark mode) * chore: fix dark mode theme in profile page
1 parent 84efd0a commit 9d7b83f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/(app)/[username]/_usernameClient.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const Profile = ({ profile, isOwner, session }: Props) => {
8888

8989
return (
9090
<>
91-
<div className="text-900 mx-auto max-w-2xl px-4 dark:text-white">
91+
<div className="text-900 mx-auto max-w-2xl px-4 text-black dark:text-white">
9292
<main className="pt-6 sm:flex">
9393
<div className="mr-4 flex-shrink-0 self-center">
9494
{image && (
@@ -124,7 +124,7 @@ const Profile = ({ profile, isOwner, session }: Props) => {
124124
<h1>Account locked 🔒</h1>
125125
</div>
126126
) : (
127-
<div className="mx-auto mt-4 sm:max-w-2xl lg:max-w-5xl">
127+
<div className="mx-auto mt-4 dark:bg-neutral-900 sm:max-w-2xl lg:max-w-5xl">
128128
<Tabs tabs={tabs} />
129129
</div>
130130
)}

app/(app)/articles/_client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const ArticlesPage = () => {
7979
<select
8080
id="filter"
8181
name="filter"
82-
className="mt-2 block w-full rounded border-neutral-300 py-1 pl-3 pr-10 text-sm leading-6 focus:ring-2 focus:ring-pink-600 dark:border-neutral-600"
82+
className="mt-2 block w-full rounded border-neutral-300 py-1 pl-3 pr-10 text-sm leading-6 focus:ring-2 focus:ring-pink-600 dark:border-neutral-600 dark:bg-neutral-800"
8383
onChange={(e) => {
8484
router.push(
8585
`/articles?filter=${e.target.value}${

app/(app)/create/[[...paramsArr]]/_client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ const Create = ({ session }: { session: Session }) => {
638638
<div className="h-full px-4 py-0 sm:px-6 lg:px-4 lg:py-6 ">
639639
{/* Start main area*/}
640640
<div className="relative h-full">
641-
<div className="bg-white text-white shadow dark:bg-neutral-900">
641+
<div className="bg-white text-black shadow dark:bg-neutral-900 dark:text-white">
642642
{viewPreview ? (
643643
<section className="mx-auto max-w-xl px-4 py-6 pb-4 sm:p-6 lg:pb-8">
644644
<article

components/Tabs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function Tabs(props: Props) {
2929
<select
3030
id="tabs"
3131
name="tabs"
32-
className="block w-full rounded-md border-neutral-300 focus:border-neutral-500 focus:ring-neutral-500"
32+
className="block w-full rounded-md border-neutral-300 bg-white focus:border-neutral-500 focus:ring-neutral-500 dark:bg-neutral-900"
3333
defaultValue={tabs.find((tab) => tab.current)?.name || tabs[0].name}
3434
onChange={(e) => {
3535
router.push(e.target.value);

0 commit comments

Comments
 (0)