Closed Bug 1881851 Opened 2 years ago Closed 1 year ago

Toolbarbuttons should have a visible border in prefers-contrast/forced-colors

Categories

(Firefox :: Theme, defect, P2)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Accessibility Severity s3
Tracking Status
firefox130 --- fixed

People

(Reporter: mstriemer, Assigned: mstriemer)

References

(Blocks 2 open bugs, Regressed 1 open bug)

Details

(Keywords: access, Whiteboard: [recomp])

Attachments

(5 files)

Our button specs for forced-colors mode depend on buttons having a border since in Windows default HCM themes the ButtonFace and Canvas colours are quite similar. The border is required to provide correct contrast.

Update the toolbarbutton styles to include a border (or potentially an outline) so that they can use our HCM styling.

Severity: -- → S3
Keywords: access
Priority: -- → P2
Assignee: nobody → mstriemer
Whiteboard: [recomp]
Accessibility Severity: --- → s3
Attachment #9389543 - Attachment description: WIP: Bug 1881851 - Part 1: Give toolbarbuttons an outline in prefers-contrast → Bug 1881851 - Part 1: Give toolbarbuttons an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Attachment #9389544 - Attachment description: WIP: Bug 1881851 - Part 2: Give bookmark toolbarbuttons an outline in prefers-contrast → Bug 1881851 - Part 2: Give bookmark toolbarbuttons an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Attachment #9389545 - Attachment description: WIP: Bug 1881851 - Part 3: Give tabs an outline in prefers-contrast → Bug 1881851 - Part 3: Give tabs an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Attachment #9389546 - Attachment description: WIP: Bug 1881851 - Part 4: Give urlbar buttons an outline in prefers-contrast → Bug 1881851 - Part 4: Give urlbar buttons an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Blocks: 1711699
Blocks: 1787934
Attachment #9389545 - Attachment description: Bug 1881851 - Part 3: Give tabs an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers → Bug 1881851 - Part 3: Give tabs an outline in forced-colors r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Attachment #9389546 - Attachment description: Bug 1881851 - Part 4: Give urlbar buttons an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers → Bug 1881851 - Part 4: Give urlbar buttons an outline in prefers-contrast r?#desktop-theme-reviewers,#accessibility-frontend-reviewers
Pushed by mstriemer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4e47942d69b2 Part 1: Give toolbarbuttons an outline in prefers-contrast r=desktop-theme-reviewers,accessibility-frontend-reviewers,morgan,emilio,dao,tabbrowser-reviewers https://hg.mozilla.org/integration/autoland/rev/d62b45401c4a Part 2: Give bookmark toolbarbuttons an outline in prefers-contrast r=desktop-theme-reviewers,accessibility-frontend-reviewers,morgan,dao https://hg.mozilla.org/integration/autoland/rev/a5f1f3f09b42 Part 3: Give tabs an outline in forced-colors r=desktop-theme-reviewers,dao,tabbrowser-reviewers https://hg.mozilla.org/integration/autoland/rev/e46eaccd15b4 Part 4: Give urlbar buttons an outline in prefers-contrast r=desktop-theme-reviewers,accessibility-frontend-reviewers,morgan,dao,urlbar-reviewers
Regressions: 1907103

Is it intended to add an outline for non-high-contrast mode? On a fresh profile, If I install the Alpenglow theme, I do get an outline, which comes from https://searchfox.org/mozilla-central/rev/01aaa47e62a2015e7641f26ab0bc2bb00ab579b8/browser/themes/shared/tabbrowser/tabs.css#44-48

&[lwtheme] {
  --tab-outline-color: var(--lwt-tab-line-color, currentColor);
  --tab-hover-outline-color: var(--lwt-tab-line-color, currentColor);
  --tab-selected-outline-color: var(--lwt-tab-line-color, currentColor);
}

I makes the tab strip a bit busy and not as clean as previously IMO (I understand that it makes sense in HCM though)

Flags: needinfo?(mstriemer)
Regressions: 1907456

The outline on all LWT without increase contrast settings was bug 1907103 and should be fixed

Flags: needinfo?(mstriemer)
Regressions: 1909338
See Also: → 1916748
Regressions: 1952825
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: