Project

General

Profile

Actions

action #119032

closed

coordination #128429: [saga][epic] Accessibility improvements in openQA

coordination #128435: [epic] openQA darkmode

Help with dark mode development size:M

Added by okurz about 2 years ago. Updated 5 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Feature requests
Target version:
Start date:
2022-10-19
Due date:
% Done:

0%

Estimated time:

Description

Motivation

pdostal did some great work in https://github.com/os-autoinst/openQA/pull/4724 with only minor details left to do. Let's support pdostal and show 'em appreciation :)

Acceptance criteria

  • AC1: darkmode is available in openQA based on configuration

Suggestions


Files

Screenshot_20221025_105420.png (15.3 KB) Screenshot_20221025_105420.png Broken gradient favogt, 2022-10-25 08:55

Related issues 6 (3 open3 closed)

Related to openQA Project (public) - action #119362: [darkmode] Test overview table header is brokenResolvedkraih2022-10-25

Actions
Related to openQA Project (public) - action #119365: [darkmode] Some form buttons are invisible by defaultResolvedkraih2022-10-25

Actions
Related to openQA Project (public) - action #119371: [darkmode] Search results are bright whiteNew2022-10-25

Actions
Related to openQA Project (public) - action #119374: [darkmode] Various tables have broken bordersNew2022-10-25

Actions
Related to openQA Project (public) - action #119386: [darkmode] Some large pages show up with light theme briefly before switching to dark themeResolvedkraih2022-10-25

Actions
Related to openQA Project (public) - action #119563: [darkmode] Update obs_rsyncNew2022-10-28

Actions
Actions #1

Updated by tinita about 2 years ago

  • Subject changed from Help with dark mode development to Help with dark mode development size:M
  • Description updated (diff)
  • Status changed from New to Workable
Actions #2

Updated by kraih about 2 years ago

  • Assignee set to kraih
Actions #3

Updated by kraih about 2 years ago

  • Status changed from Workable to In Progress
Actions #4

Updated by openqa_review about 2 years ago

  • Due date set to 2022-11-04

Setting due date based on mean cycle time of SUSE QE Tools

Actions #5

Updated by kraih about 2 years ago

Unfortunately after some research and experimentation i don't see a way to make a theme selector work with the current SCSS files. There is no way to override prefers-color-scheme from HTML/JavaScript, which means the media queries cannot be influenced. So we will have to find a way that does not involve inline media queries.

Actions #6

Updated by kraih about 2 years ago

Marius had the idea to replace the media queries with a .darkmode class, which is then conditionally applied to the <body> element. That makes forced light/dark mode very easy, and with the Window.matchMedia() API it should also work for detection. Personally i would prefer a separate darkmode CSS file with overrides for the base light mode CSS file. But we don't know yet if all the darkmode settings would work that way. So i'll first explore the .darkmode class solution.

Actions #7

Updated by kraih about 2 years ago

Opened a PR with reorganised CSS and theme settings based on the session cookie. https://github.com/os-autoinst/openQA/pull/4861

Actions #8

Updated by kraih about 2 years ago

  • Status changed from In Progress to Resolved

PR has been applied.

Actions #9

Updated by okurz about 2 years ago

  • Status changed from Resolved to Feedback
  • Priority changed from Normal to High

https://suse.slack.com/archives/C02CANHLANP/p1666682371208839 mentions some regressions in the light theme, e.g.

  • the color of icons in job tables seems to differ
  • grey background rows in tables, e.g. jobs table and tests overview are missing
  • text popups in test details is now grey, should be black
Actions #11

Updated by favogt about 2 years ago

favogt wrote:

Some table headers have a weird gradient, e.g. on https://openqa.opensuse.org/tests/overview?distri=microos&distri=opensuse&version=Tumbleweed&build=20221024&groupid=3 (see screenshot)

That is apparently because bootstrap's fixedheader sets background: white.

Actions #12

Updated by kraih about 2 years ago

I've made a PR to fix the regressions in the old light mode theme. https://github.com/os-autoinst/openQA/pull/4865

Actions #13

Updated by kraih about 2 years ago

This is not the right ticket to collect bugs in the new dark mode theme though. Please make new ones for that, otherwise it would go on forever, since there are a lot of bugs. :)

Actions #14

Updated by kraih about 2 years ago

  • Related to action #119362: [darkmode] Test overview table header is broken added
Actions #15

Updated by kraih about 2 years ago

  • Related to action #119365: [darkmode] Some form buttons are invisible by default added
Actions #16

Updated by kraih about 2 years ago

  • Related to action #119371: [darkmode] Search results are bright white added
Actions #17

Updated by kraih about 2 years ago

  • Related to action #119374: [darkmode] Various tables have broken borders added
Actions #18

Updated by kraih about 2 years ago

I think darkmode is in a usable state again now.

Actions #19

Updated by kraih about 2 years ago

  • Related to action #119386: [darkmode] Some large pages show up with light theme briefly before switching to dark theme added
Actions #20

Updated by kraih about 2 years ago

  • Status changed from Feedback to Resolved
Actions #21

Updated by kraih about 2 years ago

Actions #22

Updated by okurz over 1 year ago

  • Parent task set to #128429
Actions #23

Updated by okurz over 1 year ago

  • Parent task changed from #128429 to #128435
Actions #24

Updated by okurz 5 months ago

  • Due date deleted (2022-11-04)
Actions

Also available in: Atom PDF