From 9d525b98cd8dc4ed14aeb3c3a76f483573e20b96 Mon Sep 17 00:00:00 2001 From: llalunio Date: Fri, 10 Jan 2025 11:39:53 -0800 Subject: [PATCH] fix(a11y): fixed color contrast and heading issues --- src/components/Layout/Sidebar/SidebarLink.tsx | 2 +- src/components/Layout/TopNav/TopNav.tsx | 4 ++-- src/components/MDX/Diagram.tsx | 2 +- src/components/MDX/InlineCode.tsx | 2 +- src/components/MDX/SimpleCallout.tsx | 6 +++--- src/content/learn/index.md | 2 +- src/styles/sandpack.css | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Layout/Sidebar/SidebarLink.tsx b/src/components/Layout/Sidebar/SidebarLink.tsx index 4429989d2fb..90233494aef 100644 --- a/src/components/Layout/Sidebar/SidebarLink.tsx +++ b/src/components/Layout/Sidebar/SidebarLink.tsx @@ -66,7 +66,7 @@ export function SidebarLink({ 'text-primary dark:text-primary-dark': level === 0 && !selected, 'text-base text-secondary dark:text-secondary-dark': level > 0 && !selected, - 'text-base text-link dark:text-link-dark bg-highlight dark:bg-highlight-dark border-blue-40 hover:bg-highlight hover:text-link dark:hover:bg-highlight-dark dark:hover:text-link-dark': + 'text-base text-primary dark:text-link-dark bg-highlight dark:bg-highlight-dark border-blue-40 hover:bg-highlight hover:text-link dark:hover:bg-highlight-dark dark:hover:text-link-dark': selected, 'dark:bg-gray-70 bg-gray-3 dark:hover:bg-gray-70 hover:bg-gray-3': isPending, diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index cc5c654e3d0..08a15c3eb72 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -129,7 +129,7 @@ function NavItem({url, isActive, children}: any) { 'active:scale-95 transition-transform w-full text-center outline-link py-1.5 px-1.5 xs:px-3 sm:px-4 rounded-full capitalize whitespace-nowrap', !isActive && 'hover:bg-primary/5 hover:dark:bg-primary-dark/5', isActive && - 'bg-highlight dark:bg-highlight-dark text-link dark:text-link-dark' + 'bg-highlight dark:bg-highlight-dark text-link-10 dark:text-link-dark' )}> {children} @@ -304,7 +304,7 @@ export default function TopNav({