mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-30 12:16:40 +09:00
The language dropdown (#user_language / #i18n_default_language) is the only
dropdown still rendered by jQuery UI selectmenu (the custom languageselect
widget); every other dropdown uses select2. Only the modern theme had a
dedicated .ui-selectmenu-button.ui-button rule, so in every other theme the
language dropdown fell back to the generic jquery-ui / .ui-selectmenu-button
styling and did not match its select2 controls - at runtime:
- .ui-corner-all { border-radius: 0 !important } squared the corners in
cacti, deepness, paper-plane, paw, raspberry and sunrise (0px) and
midwinter (4px)
- dark, paw and raspberry lost their select2 glass/highlight gradient
- paper-plane generic .ui-selectmenu-button !important rules forced a white
background and a #bbb border
Add a dedicated .ui-selectmenu-button.ui-button rule (closed + open state) to
cacti, dark, deepness, midwinter, paper-plane, paw, raspberry and sunrise that
mirrors each theme's .select2-selection--single (gradient/transparent
background, border, 6px radius and open-state colours), using !important only
where the theme's own !important rule requires it. modern already matched.
dark disables the global focus outline (*:focus { outline: none }), so the new
closed-state rule would drop the keyboard-focus indicator; add a :focus-visible
ring for dark, matching what the modern theme already does.
Add tests/e2e/tests/selectmenu-theme-coverage.js, a shared helper that
exercises the closed and open selectmenu button for every changed theme
(asserting the restored 6px radius) and the dark keyboard-focus ring. It is
registered from develop-theme-correctness.spec.ts (the chromium coverage job)
and filter-dialog-theme.spec.js (the changed-coverage job) so the changed CSS
lines get browser coverage in both gates. Record the change as a changelog.d
fragment.
Co-authored-by: TheWitness <copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>