From bda7adc03303fa3c58c046d3dab6e41dfd287e1f Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Fri, 10 May 2024 09:00:44 +0530 Subject: [PATCH] fix room nav item selected styles --- src/app/components/nav/styles.css.ts | 3 --- src/app/features/room-nav/RoomNavItem.tsx | 4 ++-- src/app/pages/client/direct/Direct.tsx | 2 +- src/app/pages/client/explore/Explore.tsx | 6 +++--- src/app/pages/client/home/Home.tsx | 6 +++--- src/app/pages/client/inbox/Inbox.tsx | 4 ++-- src/app/pages/client/space/Space.tsx | 4 ++-- 7 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/app/components/nav/styles.css.ts b/src/app/components/nav/styles.css.ts index 6504d11720..6205595cbf 100644 --- a/src/app/components/nav/styles.css.ts +++ b/src/app/components/nav/styles.css.ts @@ -115,9 +115,6 @@ export const NavItemContent = style({ textDecoration: 'unset', }, [`.${NavItemBase}[data-highlight=true] &`]: { - fontWeight: config.fontWeight.W500, - }, - [`.${NavItemBase}[aria-selected=true] &`]: { fontWeight: config.fontWeight.W600, }, }, diff --git a/src/app/features/room-nav/RoomNavItem.tsx b/src/app/features/room-nav/RoomNavItem.tsx index 8bcd5fa174..1e8510f938 100644 --- a/src/app/features/room-nav/RoomNavItem.tsx +++ b/src/app/features/room-nav/RoomNavItem.tsx @@ -194,7 +194,7 @@ export function RoomNavItem({ - + {showAvatar ? ( diff --git a/src/app/pages/client/direct/Direct.tsx b/src/app/pages/client/direct/Direct.tsx index f5b6ad9834..5e69c8ca45 100644 --- a/src/app/pages/client/direct/Direct.tsx +++ b/src/app/pages/client/direct/Direct.tsx @@ -113,7 +113,7 @@ export function Direct() { - + diff --git a/src/app/pages/client/explore/Explore.tsx b/src/app/pages/client/explore/Explore.tsx index e80a4186d9..5d97e27133 100644 --- a/src/app/pages/client/explore/Explore.tsx +++ b/src/app/pages/client/explore/Explore.tsx @@ -187,7 +187,7 @@ export function Explore() { - + @@ -208,7 +208,7 @@ export function Explore() { aria-selected={selectedServer === userServer} > - + - + - + @@ -159,7 +159,7 @@ export function Home() { - + @@ -175,7 +175,7 @@ export function Home() { - + diff --git a/src/app/pages/client/inbox/Inbox.tsx b/src/app/pages/client/inbox/Inbox.tsx index 17815e7a26..3718598a60 100644 --- a/src/app/pages/client/inbox/Inbox.tsx +++ b/src/app/pages/client/inbox/Inbox.tsx @@ -29,7 +29,7 @@ function InvitesNavItem() { aria-selected={invitesSelected} > - + @@ -70,7 +70,7 @@ export function Inbox() { - + - + @@ -117,7 +117,7 @@ export function Space() { - +