From 96e118e9dcbe953a00f19599d6fe1d13572ccb2e Mon Sep 17 00:00:00 2001 From: "Irsyad A. Panjaitan" Date: Fri, 1 Nov 2024 19:52:10 +0700 Subject: [PATCH] lfg --- components/aside.tsx | 6 +++--- components/doc-how.tsx | 10 +++++----- components/nav-item.tsx | 4 ++-- components/table-of-contents.tsx | 6 ++++-- components/ui/calendar.tsx | 7 ++++--- components/ui/command-menu.tsx | 11 ++++++----- components/ui/dropdown.tsx | 6 +++--- components/ui/keyboard.tsx | 2 ++ components/ui/menu.tsx | 15 +++++++++------ components/ui/navbar.tsx | 2 +- components/ui/primitive.tsx | 2 +- components/ui/tabs.tsx | 12 ++++++------ 12 files changed, 46 insertions(+), 37 deletions(-) diff --git a/components/aside.tsx b/components/aside.tsx index ac3229d44..0576eb1c1 100644 --- a/components/aside.tsx +++ b/components/aside.tsx @@ -231,8 +231,8 @@ const asideLinkStyles = tv({ base: "relative block group focus:outline-none focus-visible:bg-muted/50 focus-visible:ring-inset focus-visible:ring-1 focus-visible:ring-primary rounded-lg pl-2.5 h-9 text-base transition-colors hover:bg-muted/60 hover:text-fg lg:text-sm", variants: { isActive: { - true: "font-medium text-fg", - false: "text-muted-fg" + false: "text-muted-fg forced-colors:text-[Gray] hover:text-fg", + true: "text-fg forced-colors:text-[LinkText]" } } }) @@ -247,7 +247,7 @@ function AsideLink({ indicatorClassName, className, children, ...props }: AsideL diff --git a/components/doc-how.tsx b/components/doc-how.tsx index 4b4573503..3a8e303d4 100644 --- a/components/doc-how.tsx +++ b/components/doc-how.tsx @@ -40,7 +40,7 @@ export function DocHow({ codeString = codeString.replace(/function\s+\w+\s*\(/g, "function App(") const divProps = { ...props } as React.HTMLProps return ( -
+
@@ -85,10 +85,10 @@ const tabStyles = tv({ ], variants: { isSelected: { - false: "text-muted-fg", - true: "text-fg forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]" + false: "text-muted-fg forced-colors:text-[Gray] forced-colors:hover:text-[MenuText]", + true: "text-fg forced-colors:text-[MenuText] forced-colors:hover:text-[MenuText]" }, - isFocused: { false: "ring-0", true: "text-fg" }, + isFocused: { false: "ring-0", true: "text-fg forced-colors:text-[MenuText]" }, isDisabled: { true: "text-muted-fg/50 forced-colors:text-[GrayText] forced-colors:selected:bg-[GrayText] forced-colors:selected:text-[HighlightText]" } @@ -114,7 +114,7 @@ const Tab = ({ children, ...props }: TabProps) => { layoutId="current_indicator" transition={{ type: "spring", bounce: 0.25, duration: 0.5 }} className={cn( - "absolute rounded bg-fg", + "absolute rounded bg-fg forced-colors:bg-[ActiveBorder]", "group-orientation-horizontal:inset-x-0 group-orientation-horizontal:-bottom-px group-orientation-horizontal:h-0.5 group-orientation-horizontal:w-full group-orientation-vertical:left-0 group-orientation-vertical:h-[calc(100%-10%)] group-orientation-vertical:w-0.5 group-orientation-vertical:transform" )} /> diff --git a/components/nav-item.tsx b/components/nav-item.tsx index c964f51f4..6667c7e81 100644 --- a/components/nav-item.tsx +++ b/components/nav-item.tsx @@ -11,8 +11,8 @@ const navLinkStyles = tv({ base: "relative flex focus-visible:text-fg items-center gap-x-3 tracking-tight py-2 text-sm text-muted-fg transition-colors focus:outline-none sm:py-3", variants: { isActive: { - true: "text-fg", - false: "text-muted-fg hover:text-fg" + false: "text-muted-fg hover:text-fg forced-colors:text-[Gray]", + true: "text-fg forced-colors:text-[WindowText]" } } }) diff --git a/components/table-of-contents.tsx b/components/table-of-contents.tsx index de842da11..8cd574de4 100644 --- a/components/table-of-contents.tsx +++ b/components/table-of-contents.tsx @@ -56,7 +56,7 @@ export function TableOfContents({ className, items }: Props) {