Handle HCM/HCT/high contrast correctly for Nova
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | verified |
People
(Reporter: adw, Assigned: daisuke)
References
Details
(Whiteboard: [sng])
Attachments
(4 files)
For high-contrast themes (HCM), the Components Figma shows that buttons/components in the input and chiclets in the view should have an outline/border and no background color. I don't believe we'll get that for free without making changes to our urlbar CSS since we don't normally set an outline on things.
If it would help to break things down further, feel free to file separate bugs for the input and the view and/or morph this one.
Updated•3 months ago
|
| Reporter | ||
Updated•3 months ago
|
| Reporter | ||
Updated•3 months ago
|
| Reporter | ||
Comment 1•3 months ago
•
|
||
We're in pretty good shape already. Here's the "Night sky" HCT on Windows 11. It's very close to the Components Figma.
| Reporter | ||
Comment 2•3 months ago
|
||
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 3•3 months ago
|
||
The screenshot is that applied the patch of Bug 2046942 that updates color tokens.
I think there is no problem basically though, I want to confirm following points.
- The boundary between the result view and the behind is hard to see. Is it okay?
- The hover color on the result menu (blue arrow) is different from other buttons such as go button (green arrow) , is it okay?
| Reporter | ||
Comment 4•3 months ago
•
|
||
Thanks Daisuke! Let's NI Paul.
- The boundary between the result view and the behind is hard to see. Is it okay?
That's what both Paul's Figma and the Components Figma show, so afaict that's correct. I agree it seems strange, but maybe it's actually better for users with HCM needs? I don't know. The designs have gone through a11y review I believe.
- The hover color on the result menu (blue arrow) is different from other buttons such as go button (green arrow) , is it okay?
IMO yes, and we should defer to Jules's changes in that patch.
In the Components Figma, you can explore what each component is supposed to look like in various states and themes [1], but I've noticed that some components don't seem to participate in that, and the result menu button is one of them. It looks the same in every single state in HCM, so I don't think we can take that as truth.
[1] Turn on dev mode, click the component until it's selected, and then click the "Explore component behavior" button in Figma's right-hand sidebar
Comment 5•3 months ago
|
||
Jessica created the HCM Figma, and Anna is the accessibility expert, so I'll seek their input on this (can't NI them as I can't find them on Bugzilla).
In addition to the questions above, should the entire panels not have a coloured outline? I think it looks odd without, and I'm sure I would have commented as such in Figma at that review stage, which makes me think a component update somewhere in Figma has accidentally removed a border, and it's been built to that spec.
Comment 6•3 months ago
|
||
Hi folks, while Anna is on leave please direct HCM questions to me :)
(In reply to Drew Willcoxon :adw from comment #4)
Thanks Daisuke! Let's NI Paul.
- The boundary between the result view and the behind is hard to see. Is it okay?
That's what both Paul's Figma and the Components Figma show, so afaict that's correct. I agree it seems strange, but maybe it's actually better for users with HCM needs? I don't know.
This should have a 1px solid border that uses an appropriate token and evaluates to CanvasText. It looks like Anna mentioned this in this thread but either the change was never posted to figma or she posted it in a different location. Either way: this does need a border.
The designs have gone through a11y review I believe.
The S&S designs have gone through review, but the individual nova components have not, which means smaller imported components like buttons and headings may still be incorrect. We have this review in our queue and are hoping to cover buttons, radio buttons, and checkboxes soon. In the interim, please use the non-nova HCM components (Desktop Components lib) as a reference.
- The hover color on the result menu (blue arrow) is different from other buttons such as go button (green arrow) , is it okay?
IMO yes, and we should defer to Jules's changes in that patch.
In the Components Figma, you can explore what each component is supposed to look like in various states and themes [1], but I've noticed that some components don't seem to participate in that, and the result menu button is one of them. It looks the same in every single state in HCM, so I don't think we can take that as truth.
[1] Turn on dev mode, click the component until it's selected, and then click the "Explore component behavior" button in Figma's right-hand sidebar
I think this button is one of the many that have not been reviewed by us yet :( it should follow the existing styles for HCM buttons in Desktop Components.
Comment 7•3 months ago
|
||
Thanks Morgan!
One more question:
In addition to the questions above, should the entire panels not have a coloured outline? I think it looks odd without, and I'm sure I would have commented as such in Figma at that review stage, which makes me think a component update somewhere in Figma has accidentally removed a border, and it's been built to that spec.
Comment 8•3 months ago
|
||
(In reply to Paul (FxUX) from comment #7)
Thanks Morgan!
One more question:
In addition to the questions above, should the entire panels not have a coloured outline? I think it looks odd without, and I'm sure I would have commented as such in Figma at that review stage, which makes me think a component update somewhere in Figma has accidentally removed a border, and it's been built to that spec.
No problem :)
Yes, the entire panel (all panels, really) should have a 1 px solid border that evaluates to CanvasText. You can read more about this and other kinds of rules we aim to enforce for HCM in our design guide.
Lemme know if there's anything else I can look over 👍
| Reporter | ||
Comment 9•3 months ago
|
||
I was testing HCM with the final patch in bug 2046942 and noticed the search mode switcher's arrow disappears on hover, and it doesn't look like it's using the right HCM colors for its bg colors.
So it sounds like there are at least three things to look into:
- Search mode switcher button
- Result menu button ("..." button inside some of the rows in the urlbar panel)
- Urlbar panel border
I have a small patch for 3 so I'll spin that off into its own bug.
| Assignee | ||
Comment 10•2 months ago
|
||
| Assignee | ||
Comment 11•2 months ago
|
||
I will fix them. Thanks!
| Reporter | ||
Updated•2 months ago
|
Comment 12•2 months ago
|
||
The following patch is waiting for review from an inactive reviewer:
| ID | Title | Author | Reviewer Status |
|---|---|---|---|
| D312188 | Bug 2046646 - Apply high contrast syle to result menu and switcher for Nova | daisuke | jules: Back Aug 12, 2026 |
:daisuke, could you please find another reviewer?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•2 months ago
|
Comment 13•1 month ago
|
||
Comment 14•1 month ago
|
||
Comment 15•1 month ago
|
||
Backed out for causing bc failures @ browser_parsable_css.js
Comment 16•1 month ago
|
||
Comment 17•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Comment 18•1 month ago
|
||
The issue is verified fixed using the latest Fx156.0a1 on Windows 11. The searchmode switcher button and the result menu buttons are now correctly visible when hovered over in high contrast mode (in particular the night sky HCM).
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Description
•