From dd8a51570ff7a2c15405b728378e6c84d92bb5de Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Tue, 26 May 2026 11:41:59 +0530 Subject: [PATCH 1/2] fix: improve back-to-top contrast --- src/components/BackToTop.jsx | 4 ++-- tests/test_back_to_top_styles.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 tests/test_back_to_top_styles.py diff --git a/src/components/BackToTop.jsx b/src/components/BackToTop.jsx index 2dcd39b9..038d0824 100644 --- a/src/components/BackToTop.jsx +++ b/src/components/BackToTop.jsx @@ -38,7 +38,7 @@ const BackToTop = () => { animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: 50 }} transition={{ duration: 0.3 }} - className="fixed bottom-28 right-11 z-50 bg-black text-white px-4 py-3 rounded-full shadow-lg hover:scale-105 transition" + className="fixed bottom-28 right-11 z-50 rounded-full border border-cyan-200/70 bg-cyan-600 px-4 py-3 text-white shadow-lg shadow-cyan-900/30 transition hover:scale-105 hover:bg-cyan-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-300 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-cyan-300/30 dark:bg-cyan-500 dark:hover:bg-cyan-400 dark:focus-visible:ring-offset-[#0a0e27]" aria-label="Back to Top" > ↑ @@ -48,4 +48,4 @@ const BackToTop = () => { ); }; -export default BackToTop; \ No newline at end of file +export default BackToTop; diff --git a/tests/test_back_to_top_styles.py b/tests/test_back_to_top_styles.py new file mode 100644 index 00000000..5abef710 --- /dev/null +++ b/tests/test_back_to_top_styles.py @@ -0,0 +1,14 @@ +from pathlib import Path + + +REPO_ROOT = Path(__file__).resolve().parents[1] + + +def test_back_to_top_button_uses_high_contrast_theme_safe_styles(): + source = (REPO_ROOT / "src/components/BackToTop.jsx").read_text(encoding="utf-8") + + assert "bg-cyan-600" in source + assert "hover:bg-cyan-500" in source + assert "dark:bg-cyan-500" in source + assert "dark:hover:bg-cyan-400" in source + assert "focus-visible:ring-cyan-300" in source From 3ef0e4507383c3f6af1f86ccbb6f236ad075be25 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Tue, 26 May 2026 16:53:41 +0530 Subject: [PATCH 2/2] ci: remove empty deploy workflow --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 8b137891..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1 +0,0 @@ -