From 0aea027fe2a258dc132c3bd41d11cee5d3ca1998 Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Wed, 4 Nov 2026 02:24:36 +0700 Subject: [PATCH] dark: make dropdowns readable (select options + pop menus) - theme.css: colour-scheme per theme for select/input/textarea and explicit option/optgroup colours (native popup was rendering light text on white in dark mode); :checked uses the purple tint - _shared.css: token fallbacks on .mu-pop-* so the theme/language menus stay readable if tokens fail to load - VERSION 2026.10.24.7 --- frontend/public/sw.js | 2 +- frontend/public/version.json | 4 ++-- frontend/src/styles/_shared.css | 10 ++++++++++ frontend/src/styles/theme.css | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 3 deletions(-) diff --git a/frontend/public/sw.js b/frontend/public/sw.js index 1057c6a..c41da11 100644 --- a/frontend/public/sw.js +++ b/frontend/public/sw.js @@ -15,7 +15,7 @@ - SW ใหม่ → skipWaiting + clients.claim + แจ้งหน้าเว็บ ============================================================ */ -const VERSION = "2026.10.24.6"; /* bump เมื่อแก้ UI เพื่อบังคับให้ cache เก่าถูกทิ้ง */ +const VERSION = "2026.10.24.7"; /* bump เมื่อแก้ UI เพื่อบังคับให้ cache เก่าถูกทิ้ง */ const CACHE = `atroute-${VERSION}`; const OFFLINE_URL = "/offline.html"; const VERSION_URL = "/version.json"; diff --git a/frontend/public/version.json b/frontend/public/version.json index b4099d6..89f2cec 100644 --- a/frontend/public/version.json +++ b/frontend/public/version.json @@ -1,6 +1,6 @@ { "app": "Atroute", - "version": "2026.10.24.6", - "builtAt": "2026-11-04T02:06:43", + "version": "2026.10.24.7", + "builtAt": "2026-11-04T02:23:45", "pwa": true } diff --git a/frontend/src/styles/_shared.css b/frontend/src/styles/_shared.css index b013e3f..12d81c5 100644 --- a/frontend/src/styles/_shared.css +++ b/frontend/src/styles/_shared.css @@ -816,3 +816,13 @@ body:has(.mu-site-footer) .mu-footer { display: none; } .mu-update-toast { transition: none; } .mu-update-dot { animation: none; } } + +/* กันกรณีโทเคนโหลดไม่ครบ (เช่น cache เก่า) — dropdown ต้องอ่านออกเสมอ */ +.mu-pop-panel { background: var(--c-surface, #fff); border-color: var(--c-border, #e7e2f6); } +:root[data-theme="dark"] .mu-pop-panel { background: var(--c-surface, #171225); border-color: var(--c-border, #352b52); } +.mu-pop-item { color: var(--c-ink, #1f2a44); } +:root[data-theme="dark"] .mu-pop-item { color: var(--c-ink, #ece9f7); } +.mu-pop-item[data-active="1"] { background: var(--c-tint-purple, #f4f1fb); color: var(--c-brand-ink, #7a4cc0); } +:root[data-theme="dark"] .mu-pop-item[data-active="1"] { background: var(--c-tint-purple, #241c3b); color: var(--c-brand-ink, #b892f5); } +.mu-pop-btn { background: var(--c-surface, #fff); color: var(--c-brand-ink, #7a4cc0); } +:root[data-theme="dark"] .mu-pop-btn { background: var(--c-surface, #171225); color: var(--c-brand-ink, #b892f5); } diff --git a/frontend/src/styles/theme.css b/frontend/src/styles/theme.css index 3215c3b..1d7eedd 100644 --- a/frontend/src/styles/theme.css +++ b/frontend/src/styles/theme.css @@ -143,3 +143,36 @@ button { transition: background-color .18s ease, color .18s ease; } } + +/* ============================================================ + dropdown /