9 Commits

Author SHA1 Message Date
Kabiru Mwenja b1375a2992 Use 'force' terminology for theme contrast preferences
Changes attribute names from enable_auto_*_contrast to force_*_contrast
to better match existing UI terminology and differentiate from single
theme contrast settings.
2025-09-16 17:03:53 +03:00
Kabiru Mwenja 8eed437032 Add custom Capybara selectors for theme testing
Replaces raw CSS selectors with reusable Capybara selectors following
the existing pattern used in primer_component_selectors.rb.

- Creates :theme selector for testing color modes and contrast settings
- Creates :auto_theme_config selector for auto theme configuration
- Updates interface tests to use new selectors with cleaner syntax
- Consolidates theme test helpers inline in interface_spec.rb
- Removes duplicate theme_matchers.rb file
2025-09-16 17:03:52 +03:00
Kabiru Mwenja 6bfc40f4dc Use custom matchers and test helpers for better test dsl 2025-09-13 12:41:06 +03:00
Kabiru Mwenja 740bedb084 Add "Increase contrast" checkboxes for "Light high contrast" and "Dark high contrast" that force high contrast in Automatic mode
https://community.openproject.org/work_packages/66396
2025-09-13 12:41:05 +03:00
Oliver Günther 17257be3e0 Use color, not colour for consistency (#20082)
* Use color, not colour for consistency

* Update spec/features/my/interface_spec.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

---------

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
2025-08-28 21:11:11 +02:00
Kabiru Mwenja 8eca35873d Automatically switch to dark high contrast if user prefers so (#19911) 2025-08-14 09:49:52 +03:00
Kabiru Mwenja 15475aec8e Remove flaky high contrast feature test
This relies on the OS contrast setting which is not straightforward to replicate in CI
2025-08-05 14:02:46 +03:00
Kabiru Mwenja ce689f9386 Automatically detect user contrast setting 2025-08-05 13:29:46 +03:00
Kabiru Mwenja c38c87ec9b Add feature tests for automatic theme switcher 2025-08-05 12:20:17 +03:00