Skip to content

fix(ui): catch bg-emerald-50 trial banner in dark-mode pill rules#62

Merged
ringo380 merged 1 commit into
mainfrom
fix/dark-mode-emerald-50-banner
May 14, 2026
Merged

fix(ui): catch bg-emerald-50 trial banner in dark-mode pill rules#62
ringo380 merged 1 commit into
mainfrom
fix/dark-mode-emerald-50-banner

Conversation

@ringo380
Copy link
Copy Markdown
Owner

Followup to #61. The compound pill rule only matched bg-{color}-100.text-{color}-700, so the anon trial banner (bg-emerald-50.text-emerald-700 in index.html) still rendered at light-mode saturation. Extends each color's rule to cover -50 variants too.

PR #61 dimmed the grade-pill compound rule but only matched the
bg-{color}-100.text-{color}-700 combination. The anon trial banner
("50 of 50 free grades remaining this session") in index.html uses
bg-emerald-50.text-emerald-700 — different class combo, slipped past
the rule and continued rendering at light-mode saturation.

Extend each color's compound rule to cover the -50 variant too
(emerald, lime, amber, orange, red). Add emerald-50.text-emerald-900
since query_with_context.html uses that pair.

Now matches the ambient-pill treatment everywhere those classes appear:
trial banner, grade-A surfaces in compare_results / contextualized
results, etc.
@ringo380 ringo380 merged commit f58827b into main May 14, 2026
@ringo380 ringo380 deleted the fix/dark-mode-emerald-50-banner branch May 14, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant