Open Bug 1776723 Opened 3 years ago Updated 1 year ago

Checkboxes do not display their state when `browser.display.document_color_use` is `2`.

Categories

(bugzilla.mozilla.org :: User Interface, defect)

Production
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: zn7esutb, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0

Steps to reproduce:

I configured “browser.display.document_color_use” to be “2”.

Actual results:

Whether any check-boxes were filled was not possible to ascertain visually.

Expected results:

The boxes should visually present their state.

Component: User Interface → Untriaged
Product: bugzilla.mozilla.org → Firefox
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

This is an issue with Bugzilla's styling. They have:

@media screen and (prefers-color-scheme: dark) {
  input[type="checkbox"]:checked {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path fill="rgb(35, 36, 37)" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
  }
}

Which is a dark-colored checkmark. So if you have dark mode but we don't use document colors, contrast is poor because we don't respect the --focused-control-border-color.

A way to fix this could be something like this, maybe:

@media (forced-colors) {
  input[type=checkbox] { appearance: auto }
}

Or so, to not use custom checkboxes in this case. Though, more generally, given bugzilla only uses custom checkboxes to change the background, effectively, maybe they can remove all the custom checkbox styles and do:

:root {
  accent-color: rgb(var(--accent-color-blue-1));
}

To avoid having to use custom styles for form controls.

Component: Layout: Form Controls → User Interface
Product: Core → bugzilla.mozilla.org

If someone can paste a patch here or create a PR in Github, I can merge the change and fix this. Otherwise it might be a while before I can get to this myself.

GitHub meaning more specifically where? If this is actually a problem with Bugzilla, rather than this instance of it (which I distinguish between because KDE's instance at "http://invent.kde.org" appears to demonstrate this problem too) I should probably report this via its bug-tracker.

Flags: needinfo?(dkl)

Our fork of Bugzilla lives in https://github.com/mozilla-bteam/bmo/
Looks like KDE uses GitLab not Bugzilla.

Flags: needinfo?(dkl)

They use Bugzilla for all of their bug-reports, except if some core maintainers want to ignore that rule if it complements their pull-requests better.

Anyway, if https://github.com/mozilla-bteam/bmo/ (bugzilla.mozilla.org) is merely a fork of Bugzilla, where's the original repository, and, to evaluate it, is it hosted anywhere? I ask because I still want to know whether this problem is best reported there, to assist the most codebases possible.

Flags: needinfo?(dkl)

They use Bugzilla for all of their bug-reports

Ah; the link you provided - http://invent.kde.org/ - is GitLab.
Looks like there's an install at https://bugs.kde.org/.

where's the original repository

https://github.com/bugzilla/bugzilla

Be aware the prefers-color-scheme CSS referenced here is specific to BMO and is not present in "upstream" Bugzilla.
If you see the same issue on other installations it would be part of their customisations and should be reported directly to that install's owners.

Flags: needinfo?(dkl)
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Check-boxes do not present their state when “browser.display.document_color_use” is “2”. → Checkboxes do not display their state when `browser.display.document_color_use` is `2`.
Version: unspecified → Production
Attachment #9283121 - Attachment description: Depiction of this problemacy. → https://bugzilla.mozilla.org/page.cgi?id=voting/user.html&bug_id=1776723#vote_1776723
Attachment #9283122 - Attachment description: Depiction of this problemacy. → https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&format=guided
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: