From e4a989046f066e9cd4aaa231da1a71e09221ef36 Mon Sep 17 00:00:00 2001 From: Falkan Date: Tue, 17 Mar 2026 18:01:12 -0400 Subject: [PATCH] =?UTF-8?q?docs:=20correct=20ghost=20button=20hover=20gotc?= =?UTF-8?q?ha=20=E2=80=94=20must=20override=20CSS=20vars,=20not=20just=20c?= =?UTF-8?q?olor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PICO_CSS.md | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/PICO_CSS.md b/PICO_CSS.md index 6f9e7a4..67fea7b 100644 --- a/PICO_CSS.md +++ b/PICO_CSS.md @@ -24,33 +24,38 @@ In light mode, `--pico-primary-inverse` is `#fff`. This means **any element with **Alternative:** Remove `role="button"` and use `tabindex="0"` + keyboard handlers only, avoiding the Pico button rule entirely. Only do this if button semantics aren't needed for accessibility. -## Plain buttons disappear on hover in light/Dan mode +## Plain/ghost buttons disappear on hover in light/Dan mode -Pico's button hover rule sets `--pico-color: var(--pico-primary-inverse)` (i.e. `#fff`) on hover, making the text white. If your button has a transparent or white background — e.g. a "plain" / ghost-style button — the text becomes invisible. - -This affects any `