fix: make filter dropdown option values visible in Firefox (fixes #40) #48

Open
fern-oss-17523 wants to merge 1 commit from fern-oss-17523/v2-web:fix/filter-dropdown-option-colors into master
First-time contributor

Problem

Fixes #40 — filter dropdown values are invisible in Firefox (reported on Firefox 136 / Windows 10), while the same Category and Android version selects look fine in Chromium-based browsers.

Root cause

The Category and Android version filters in src/components/AppFooter.vue are native <select class="... uk-select"> elements, inside a body.uk-light layout whose :root declares color-scheme: dark (src/index.html).

The CSS cascade affecting the open dropdown list is:

  • UIkit only colors the option text — .uk-select:not([multiple]):not([size]) option { color: #666 } — and never sets an option background.
  • The closed <select> control is styled dark by .uk-light .uk-select { background-color: rgba(255,255,255,.1); color: rgba(255,255,255,.7) }, but that rule does not reach the options.
  • Firefox honors color-scheme: dark for the native dropdown popup and paints it on a dark surface, so the dark-gray #666 option values become invisible.
  • Chromium keeps a light native popup surface, where #666 remains visible — matching the reporter's observation.

Verified computed styles in headless Chromium before any change:

  • option color rgb(102,102,102) with background rgba(0,0,0,0) (transparent → Firefox dark popup),
  • select control rgba(255,255,255,0.1) / rgba(255,255,255,0.7).

Solution

On the two filter selects' option elements, pin an explicit light surface alongside the existing #666 text color, which is the original light UIkit option design:

.App__Footer__Filters__FilterContainer__Filter__Input option {
    color: #666;
    background-color: #fff;
}
  • Firefox now paints every option row solid white with dark text regardless of color-scheme, so the values are readable.
  • Chromium ignores option background/color overrides for its native popup, so its currently-correct rendering is unchanged.
  • No component markup, behavior or third-party library is modified; the closed control looks exactly as before, and the change is scoped to the filter selects (the only two <select> elements in the app).

Validation

  1. yarn build — Vite production build succeeds; the new rule is present in the bundled assets CSS (...FilterContainer__Filter__Input option{color:#666;background-color:#fff}).
  2. yarn start — Vite dev server serves /, /index.js and /components/AppFooter.vue with HTTP 200.
  3. Headless Chromium computed-style check on a page using the real bundled stylesheet:
    • before: option background-color: rgba(0,0,0,0), color: rgb(102,102,102)
    • after: option background-color: rgb(255,255,255), color: rgb(102,102,102)
    • WCAG contrast of #666 on #fff is 5.74:1 (passes AA for normal text).

Note: no unit test suite exists in this project (only start/build scripts). A real Firefox re-check on a desktop build is recommended as final confirmation, but the fix targets the exact CSS cascade that differentiates the two engines.

Impact / risk

  • Visual-only, CSS-only change, scoped to two filter dropdowns.
  • No API, template or logic changes; no dependency changes.
  • Chromium appearance unchanged; Firefox dropdown values become visible.
  • CHANGELOG updated under Unreleased / Fixed.
## Problem Fixes #40 — filter dropdown values are **invisible in Firefox** (reported on Firefox 136 / Windows 10), while the same Category and Android version selects look fine in Chromium-based browsers. ## Root cause The Category and Android version filters in `src/components/AppFooter.vue` are native `<select class="... uk-select">` elements, inside a `body.uk-light` layout whose `:root` declares `color-scheme: dark` (`src/index.html`). The CSS cascade affecting the open dropdown list is: - UIkit only colors the **option text** — `.uk-select:not([multiple]):not([size]) option { color: #666 }` — and never sets an option background. - The closed `<select>` control is styled dark by `.uk-light .uk-select { background-color: rgba(255,255,255,.1); color: rgba(255,255,255,.7) }`, but that rule does not reach the options. - Firefox honors `color-scheme: dark` for the native dropdown popup and paints it on a **dark surface**, so the dark-gray `#666` option values become invisible. - Chromium keeps a light native popup surface, where `#666` remains visible — matching the reporter's observation. Verified computed styles in headless Chromium before any change: - `option` color `rgb(102,102,102)` with background `rgba(0,0,0,0)` (transparent → Firefox dark popup), - `select` control `rgba(255,255,255,0.1)` / `rgba(255,255,255,0.7)`. ## Solution On the two filter selects' `option` elements, pin an explicit light surface alongside the existing `#666` text color, which is the original light UIkit option design: ```css .App__Footer__Filters__FilterContainer__Filter__Input option { color: #666; background-color: #fff; } ``` - Firefox now paints every option row solid white with dark text regardless of `color-scheme`, so the values are readable. - Chromium ignores option background/color overrides for its native popup, so its currently-correct rendering is unchanged. - No component markup, behavior or third-party library is modified; the closed control looks exactly as before, and the change is scoped to the filter selects (the only two `<select>` elements in the app). ## Validation 1. `yarn build` — Vite production build succeeds; the new rule is present in the bundled assets CSS (`...FilterContainer__Filter__Input option{color:#666;background-color:#fff}`). 2. `yarn start` — Vite dev server serves `/`, `/index.js` and `/components/AppFooter.vue` with HTTP 200. 3. Headless Chromium computed-style check on a page using the real bundled stylesheet: - before: option `background-color: rgba(0,0,0,0)`, `color: rgb(102,102,102)` - after: option `background-color: rgb(255,255,255)`, `color: rgb(102,102,102)` - WCAG contrast of `#666` on `#fff` is **5.74:1** (passes AA for normal text). Note: no unit test suite exists in this project (only `start`/`build` scripts). A real Firefox re-check on a desktop build is recommended as final confirmation, but the fix targets the exact CSS cascade that differentiates the two engines. ## Impact / risk - Visual-only, CSS-only change, scoped to two filter dropdowns. - No API, template or logic changes; no dependency changes. - Chromium appearance unchanged; Firefox dropdown values become visible. - CHANGELOG updated under `Unreleased / Fixed`.
fern-oss-17523 added 1 commit 2026-11-27 17:41:50 +01:00
UIkit only sets option text color (#666) via
.uk-select:not([multiple]):not([size]) option and never sets an option
background, while :root declares color-scheme: dark. Firefox renders
the open dropdown on that dark surface, so the #666 option values
become invisible; Chromium keeps a light surface and displays them.

Pin an explicit light background with the existing #666 text color on
the filter <select> options, matching the original light UIkit option
design and making them visible in every engine.

- src/components/AppFooter.vue: option color/background-color rules
- CHANGELOG.md: Unreleased Fixed entry

Refs: #40
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/filter-dropdown-option-colors:fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'fern-oss-17523-fix/filter-dropdown-option-colors'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout 'master'
git merge --no-ff 'fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'fern-oss-17523-fix/filter-dropdown-option-colors'
git rebase 'master'
git checkout 'master'
git merge --ff-only 'fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'fern-oss-17523-fix/filter-dropdown-option-colors'
git rebase 'master'
git checkout 'master'
git merge --no-ff 'fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'master'
git merge --squash 'fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'master'
git merge --ff-only 'fern-oss-17523-fix/filter-dropdown-option-colors'
git checkout 'master'
git merge 'fern-oss-17523-fix/filter-dropdown-option-colors'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: playsearch.kaki87.net/v2-web#48
No description provided.