Files
cacti/docs/validation/raspberry-theme.md
T
Thomas Vincent f1654dd8e2 Fix theme titlebar overflow, keyboard focus and text contrast across eight themes (#8712)
* Share theme contrast helpers across stacked accessibility fixes

From #8484.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Dark theme keyboard focus, wrapped titles, and hover contrast

From #8488.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Deepness title layout and status text contrast

From #8492.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Sample intermediate gradient colors in theme contrast checks

From #8494.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Midwinter details controls and row-state text contrast

From #8496.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Modern keyboard focus, wrapped titles, and text contrast

From #8503.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Paw wrapped titlebars and row and tab contrast

From #8505.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Raspberry title overflow and text contrast

From #8507.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Sunrise title overflow and highlighted-option contrast

From #8509.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* Fix Paper Plane title layout and table contrast across surfaces

From #8511.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(theme): keep the stacked theme spec blocks in stack order after rebasing

Puts the text-contrast import with the other imports and the Midwinter suite back before the shared card suites from develop. No test was added or removed.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* chore(changelog): move the theme fix entries to changelog.d fragments

develop now takes changelog fragments instead of CHANGELOG edits. This also drops the repeated #8480 and #8485 lines the stacked branches had added.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-17 13:54:49 -05:00

2.1 KiB

Raspberry theme validation

Raspberry keeps wrapped titles beside their controls while preserving short 28px bars, including padding. Darker purple edit links, menu text, and selected tabs improve contrast. Selected rows retain yellow hover links, and table headings use a less transparent purple background for readable white text.

Populated browser fixtures

The browser loads the shipped Raspberry and jQuery UI stylesheets. Device names, response times, traffic, and alert messages are synthetic monitoring data. These fixtures do not require a running Cacti installation.

Raspberry device inventory with synthetic measurements

The browser follows a device link, opens a real jQuery UI details dialog at 320px, checks its alert data and title bounds, and closes it.

Raspberry narrow details with synthetic alerts

Reproduce

Use the dependency setup in Cacti theme validation, then run from tests/e2e:

CACTI_THEME_COVERAGE=1 mise exec node@22 -- node node_modules/@playwright/test/cli.js test \
  tests/develop-theme-correctness.spec.ts tests/develop-theme-cleanup.spec.ts --project=chromium

Set UPDATE_THEME_SCREENSHOTS=1 to regenerate screenshots. Tests cover native title spans and controls at 320, 390, and 1280px, links across row states, selected tabs, navigation, and active controls. Table headings are checked in normal, selected, and hovered-column states. Contrast checks compose alpha and sample sRGB gradient stops and interiors. They do not prove contrast for arbitrary image backgrounds or every pixel.

After committing, measure changed CSS line coverage from the repository root:

mise exec python@3.12 -- python tests/tools/report_changed_coverage.py \
  --base fix/paw-theme-accessibility --language css --minimum 100 \
  --browser-root tests/e2e/test-results

This layer extends the shared browser helpers above Paw in the native theme stack. Use origin/develop after the lower layers merge. The gate measures executed changed CSS lines, not whole-project or branch coverage.