Skip to content

Pickers sections mixed with items aren't visually distinct #5875

Open
@dsmmcken

Description

@dsmmcken

Provide a general summary of the feature here

If I have a picker with some items grouped by section and some not, it can be hard to tell where a section ends. For Example consider the following example:

<Picker label="Pick your favorite">
  <Item key="Boat">Boat</Item>
  <Section title="Animals">
    <Item key="Kangaroo">Kangaroo</Item>
    <Item key="Snake">Snake</Item>
  </Section>
  <Section title="People">
    <Item key="Danni">Danni</Item>
    <Item key="Devon">Devon</Item>
  </Section>
  <Item key="Refrigerator">Refrigerator</Item>
</Picker>

Where some items belong to sections, and others do not.

🤔 Expected Behavior?

Users are able to tell when an item belongs to a section or not.

😯 Current Behavior

Items all look the same, unable to tell if items after a section are part of the section or not. Refrigerator looks like it is in People but a fridge is in fact not a person.

image

💁 Possible Solution

Maybe indenting each item under a section with some margin would help?
image

🔦 Context

I have a mixed list of categories and single items that aren't in any category and would like it to be visually identifiable which are which.

The spectrum guidelines don't seem to provide any guidance here one way or the other. https://spectrum.adobe.com/page/picker/

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions