Open Bug 1927207 Opened 10 months ago Updated 3 days ago

The import browser data button menu doesn't conform to HCM standards

Categories

(Firefox :: Messaging System, defect, P1)

x86_64
Windows 10
defect
Points:
2

Tracking

()

Iteration:
144.1 - Aug 18 - Aug 29
Accessibility Severity s3

People

(Reporter: nstroud, Assigned: emcminn)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(5 files, 2 obsolete files)

Attached image Import Browser Data with default menu (obsolete) —

Prerequisites:

Found in Nightly 133.0a1 (2024-10-25)(64-bit)
Turn on Night Sky High Contrast mode on your device (steps to do so here)

STR:

  1. Open about:welcome from the URL bar
  2. Click the 'Save and Continue' button to go to the next screen
  3. Compare menu button styles in Nightly to the styles established in the High Contrast Mode Figma

Expected/Actual:

The menu buttons should follow the styles established in the High Contrast Mode Figma.

Attached image Import Browser Data with focused menu (obsolete) —
Assignee: nobody → emcminn
Severity: -- → S3
Iteration: --- → 134.1 - Oct 28 - Nov 8
Points: --- → 2
Priority: -- → P1
See Also: → 1926413

Hi Natalie! I'm working on a patch for this and I was wondering if you could clarify something for me - the dropdown menu and its buttons already use theme variables (--in-content-button-text-color and --in-content-button-background) and on my system (Windows 10 High Contrast Black) look like they are following the expected system colors for buttons and text. (I don't have a Night Sky theme available, is it a Win 11 theme?)

Is there an existing menu that's already following the expected colors so I can compare what variables are being used in HCM? I'm hesitant to override theme colors since there are so many different possibilities in terms of the exact theme being used.

Flags: needinfo?(nstroud)

(In reply to Emily McMinn :emcminn from comment #4)

Hi Natalie! I'm working on a patch for this and I was wondering if you could clarify something for me - the dropdown menu and its buttons already use theme variables (--in-content-button-text-color and --in-content-button-background) and on my system (Windows 10 High Contrast Black) look like they are following the expected system colors for buttons and text. (I don't have a Night Sky theme available, is it a Win 11 theme?)

Is there an existing menu that's already following the expected colors so I can compare what variables are being used in HCM? I'm hesitant to override theme colors since there are so many different possibilities in terms of the exact theme being used.

Hey hey, Natalie is a bit new to HCM so jumping in to offer some help :)

I added a HCM Black version to the figma file so you can compare on windows 10 (Night Sky is a win 11 theme, but you can also make a custom theme to match it in the windows HCM settings). This item is actually two components -- the dropdown, and the menu which is displayed. You can find the dropdown component here.

I know we've recommended this component in the past / have used it in mock ups, but off the top of my head I'm not sure where you'd be able to find it in firefox right now. I'll NI?anna here to see if she has any ideas.

I think the highest severity issue here is that we do not currently change the colour of the actively selected menu item for HCM. In Natalie's screenshot of the collapsed menu the "Microsoft Internet Explorer" option is selected, however in the screenshot of the expanded menu, the "Microsoft Internet Explorer" menu item has the same colouring as the other non-selected menu items.

Can we update that item to start with?

:nstroud in the meantime can you provide more specific information on which parts of the menu do and don't match the spec?

Flags: needinfo?(ayeddi)
Flags: needinfo?(nstroud)

Comment on attachment 9433422 [details]
Import Browser Data with default menu

screenshot not needed upon further review

Attachment #9433422 - Attachment is obsolete: true

Comment on attachment 9433425 [details]
Import Browser Data with focused menu

screenshot not needed upon further review

Attachment #9433425 - Attachment is obsolete: true

Thank you :morgan!

:emcminn - I've adjusted the bug with the correct Figma for the Dropdown component (apologies about that). Only the hover state and active state contain the incorrect colors

Hover: when I hover over the dropdown, the fill changes to purple (SelectedItem or #D6B4FD) with dark gray text (SelectedItemText or #2b2b2b). This should be switched around so that the fill/background is SelectedItemText and the text is SelectedItem

Active: The styling for the active state shows the fill/background is SelectedItemText and the border and text are both SelectedItem. The only thing that should be changed here is that the border color should be ButtonText yellow

Also- I accidentally removed my needinfo tag and didn't mean to! Still learning Bugzilla haha. I hope this helps, feel free to reach out if you need anything!

Flags: needinfo?(emcminn)

(In reply to Morgan Reschenberg [:morgan] from comment #5)

I know we've recommended this component in the past / have used it in mock ups, but off the top of my head I'm not sure where you'd be able to find it in firefox right now. I'll NI?anna here to see if she has any ideas.

If I recall it correctly, this specific component was a custom one for the onboarding flow because the HTML <select> element did not allow for icons to be added to the options in its listbox. Maybe something similar was investigated for the Settings UI as well? I do not recall any other examples of such custom combobox being used now.

:Jules, do you know if the combobox with icons like that is used elsewhere?

If there are no other instances, I think reusing the hover and active color variables from the same --in-content-button-... set could be appropriate

Flags: needinfo?(ayeddi) → needinfo?(jules)

Thanks everyone! This is workable :) I'm going to be throwing this and the other HCM/a11y bugs for the import screen under a metabug, since it seems like there's a handful.

Flags: needinfo?(emcminn)
Iteration: 134.1 - Oct 28 - Nov 8 → 134.2 - Nov 11 - Nov 22
Attached image existing colours
Attached image new colours

Hi Natalie! I've tried implementing the colour variables as per comment #8 and while HCM looks good to me, I'm a little concerned about the contrast in non-HCM now. (See attached screenshots.) I'm having trouble viewing the dropdown panel with the a11y devTools so I'm not sure what the actual value is.

As far as indicating the selected value in the dropdown, since this is a custom component (a button with an attached panel) and not actually a select component, it's not clear to me how the selected state is being maintained between the button and the panel. :active doesn't seem to be used here. I've needinfo'd Mike who I think worked on the implementation of the component, hopefully he can give us a clue :)

Flags: needinfo?(nstroud)
Flags: needinfo?(mconley)

Hi! Yes, this panel is a <panel-list> reusable component - similar to the one used in the Firefox View meatball menu. The dropdown is a button that causes the <panel-list> to open.

We could update our usage of the <panel-list> to set an attribute to indicate which <panel-item> is currently selected, and then style it differently. We could do that here: https://searchfox.org/mozilla-central/rev/81ac0fe96e1bd6020408c2ae7eae6e5b5114d1db/browser/components/migration/content/migration-wizard.mjs#466

Flags: needinfo?(mconley)

Hi Emily, thank you for making the updates! I think we should use the HCM color variables in the forced-colors query - this way the non-HCM mode won't have different colors (since there are no known a11y issues with the styling of the non-HCM view). I hope this helps!

Flags: needinfo?(nstroud) → needinfo?(emcminn)
Flags: needinfo?(emcminn)
Iteration: 134.2 - Nov 11 - Nov 22 → 135.1 - Nov 25 - Dec 6
Attachment #9438618 - Attachment description: WIP: Bug 1927207 - Adjust hover and active colors for migration-wizard dropdown → Bug 1927207 - Adjust hover and active colors for migration-wizard dropdown
Duplicate of this bug: 1928505

Sorry for the delay replying Anna

:Jules, do you know if the combobox with icons like that is used elsewhere?

I think this is the only instance besides that XUL dropdown in Search settings that I've seen an icon in a dropdown

Flags: needinfo?(jules)
Iteration: 135.1 - Nov 25 - Dec 6 → 135.2 - Dec 9 - Dec 20
Iteration: 135.2 - Dec 9 - Dec 20 → 135.3 - Dec 23 - Jan 3
Iteration: 135.3 - Dec 23 - Jan 3 → 136.1 - Jan 6 - Jan 17
Iteration: 136.1 - Jan 6 - Jan 17 → 136.2 - Jan 20 - Jan 31
Iteration: 136.2 - Jan 20 - Jan 31 → 137.1 - Feb 3 - Feb 14
Iteration: 137.1 - Feb 3 - Feb 14 → 137.2 - Feb 17 - Feb 28
Iteration: 137.2 - Feb 17 - Feb 28 → 138.1 - Mar 3 - Mar 14
Iteration: 138.1 - Mar 3 - Mar 14 → 138.2 - Mar 17 - Mar 28
Iteration: 138.2 - Mar 17 - Mar 28 → 139.1 - Mar 31 - Apr 11
Iteration: 139.1 - Mar 31 - Apr 11 → 139.2 - Apr 14 - Apr 25
Iteration: 139.2 - Apr 14 - Apr 25 → 140.1 - Apr 28 - May 9
Iteration: 140.1 - Apr 28 - May 9 → 140.2 - May 12 - May 23
Iteration: 140.2 - May 12 - May 23 → 141.1 - May 26 - Jun 6
Iteration: 141.1 - May 26 - Jun 6 → 141.2 - Jun 9 - Jun 20
Iteration: 141.2 - Jun 9 - Jun 20 → 142.1 - Jun 23 - Jul 4
Iteration: 142.1 - Jun 23 - Jul 4 → 142.2 - Jul 7 - Jul 18
Attachment #9438618 - Attachment description: Bug 1927207 - Adjust hover and active colors for migration-wizard dropdown → Bug 1927207 - Adjust hover and active styles for migration-wizard dropdown
Iteration: 142.2 - Jul 7 - Jul 18 → 143.1 - Jul 21 - Aug 1
Iteration: 143.1 - Jul 21 - Aug 1 → 143.2 - Aug 4 - Aug 15
Iteration: 143.2 - Aug 4 - Aug 15 → 144.1 - Aug 18 - Aug 29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: