Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calcite-Combobox > Focus item in dropdown displays gray active dot #6245

Open
Tracked by #7733
richiecarmichael opened this issue Jan 6, 2023 · 6 comments
Open
Tracked by #7733
Labels
0 - new New issues that need assignment. ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. c-combobox Issues that pertain to the calcite-combobox and related components design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. estimate - design - sm Small design effort; 1-4 days of design work needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. needs triage Planning workflow - pending design/dev review. ready for dev Issues ready for development implementation.

Comments

@richiecarmichael
Copy link

Description

The calcite combobox dropdown menu displays the currently selected item with a small blue dot (see "Carrot" below). The first item in the dropdown always has focus and is displayed with a blue outline and small gray dot (see "Apple" below).

The small gray dot next to Apple could be confusing to the user. Some users might this is it the default value, or perhaps original value.

image

// @adam

Acceptance Criteria

Do not show gray dot next for focused items in the calcite combobox dropdown.

Relevant Info

No response

Which Component

Combobox

Example Use Case

Multiple Selection

  1. https://developers.arcgis.com/calcite-design-system/components/combobox/
  2. Click comboxbox toggle button.
  3. Engineering is checked even though not added.

image

Single Selection

  1. https://developers.arcgis.com/calcite-design-system/components/combobox/
  2. Change selection-mode to "single"
  3. Click comboxbox toggle button.
  4. Engineering is dotted even though not added.

image

Esri team

ArcGIS API for JavaScript

@richiecarmichael richiecarmichael added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Jan 6, 2023
@github-actions github-actions bot added the ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. label Jan 6, 2023
@macandcheese
Copy link
Contributor

Thanks for opening @richiecarmichael - @ashetland @SkyeSeitz can we take a look at this?

I agree it may be confusing. Additionally, our behavior between Dropdown and Combobox are different. In Dropdown, hover shows the grey dot, while focus does not. In Combobox, hovering shows no dot, but focusing does. It seems like adopting the Dropdown approach in Combobox could solve potential confusion:

Additionally (may be a separate issue) - Dropdown automatically focuses the first (or only) selected item in the list, Combobox always seems to focus the first item whether there is an existing selection or not. Should we address that as well?

@ashetland
Copy link

I agree that adopting the Dropdown approach would help here and also improve consistency.

The focus issue is something we could dig into separately.

@macandcheese macandcheese added the c-combobox Issues that pertain to the calcite-combobox and related components label Mar 22, 2023
@geospatialem geospatialem added the design Issues that need design consultation prior to development. label Jan 22, 2024
@geospatialem geospatialem added the estimate - design - sm Small design effort; 1-4 days of design work label May 9, 2024
@DitwanP
Copy link
Contributor

DitwanP commented Jun 13, 2024

This is included in a larger epic #7733

@SkyeSeitz
Copy link

Discussed this with Aaron in context of our interaction state audit. I think we can move forward with this issue separately after all before further refinements to Combobox.

Here is the proposed design to remove the selection icon preview on focused Combobox Items:
image

@SkyeSeitz SkyeSeitz added the ready for dev Issues ready for development implementation. label Jun 17, 2024
@github-actions github-actions bot added the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Jun 17, 2024
Copy link
Contributor

cc @geospatialem, @brittneytewks

@SkyeSeitz
Copy link

Re: focus order, for Combobox it might make sense to default to focusing the last item selected in order to prioritize keeping selected items in view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. c-combobox Issues that pertain to the calcite-combobox and related components design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. estimate - design - sm Small design effort; 1-4 days of design work needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. needs triage Planning workflow - pending design/dev review. ready for dev Issues ready for development implementation.
Projects
None yet
Development

No branches or pull requests

7 participants