From e65669fedef1ffa2a77f2ee4e1a1112f8d442309 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:29:25 -0600 Subject: [PATCH] fix: iOS 26 troubleshooting 1.0 --- frontend/index.html | 28 ++++++++++++++++++++++++++++ frontend/src/index.css | 13 ++++++++----- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 8cad153..8ba053d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -6,6 +6,34 @@ MotoVaultPro + + + + + diff --git a/frontend/src/index.css b/frontend/src/index.css index f46efae..025703c 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -15,20 +15,23 @@ body { box-sizing: border-box; } +/* Tell browser we support both color schemes for native UI elements (scrollbars, form controls) */ +/* This enables iOS Safari to properly handle dark mode */ :root { - color-scheme: light; -} - -:root.dark { - color-scheme: dark; + color-scheme: light dark; + -webkit-color-scheme: light dark; /* iOS Safari fallback */ } +/* Base styles on html element */ html { background-color: #ffffff; color: #1e293b; } +/* Dark mode overrides when .dark class is present */ html.dark { background-color: #231F1C; color: #F2F3F6; + color-scheme: dark; + -webkit-color-scheme: dark; } \ No newline at end of file