Closed Bug 1832476 Opened 2 years ago Closed 2 years ago

When the Spaces bar is hidden on dark themes, all items in the Spaces Menu have the same icon.

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 114
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird114 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 --- fixed

People

(Reporter: dillinger, Assigned: Paenglab)

Details

(Keywords: regression, regressionwindow-wanted, Whiteboard: smoketestbeta)

Attachments

(2 files)

Select/install a dark theme, click bottom left |<- button to hide the Spaces Toolbar, then click top left Spaces button for the Spaces Menu. The Spaces button icon is used for all menu items.

Possible cause & fix:

On line 38 of chrome://messenger/content/webextensions.css there is the following rule:

  @media (prefers-color-scheme: dark) {
    :root .spaces-addon-menuitem,
    :root .spaces-popup-menuitem,
    .webextension-action {
      list-style-image: var(--webextension-toolbar-image-light, inherit) !important;
    }

    :root .spaces-addon-button img {
      content: var(--webextension-toolbar-image-light, inherit) !important;
    }
  }

The !important keywords here force not just the light icon but also the inheriting of the parent icon and therefore all icons are replaced by the Spaces icon.

When the !important keywords are removed it works OK, I don't think they are necessary, @media overrules the default anyway, but maybe I'm missing something.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Target Milestone: --- → 115 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/5ab34c7e4766
Remove the .spaces-popup-menuitem styles from webextensions.css. r=elizabeth

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Attachment #9333138 - Flags: approval-comm-beta?

Comment on attachment 9333138 [details]
Bug 1832476 - Remove the .spaces-popup-menuitem styles from webextensions.css. r=#thunderbird-front-end-reviewers

[Triage Comment]
Approved for beta

Attachment #9333138 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: