Skip to content

[EuiSelectable] Discoverability of exclusions #3625

@myasonik

Description

@myasonik

Selectable currently supports exclusions by clicking on each option multiple times: clicking once sets it to "included", clicking again sets it to "excluded", and clicking again resets it to nothing.

There isn't a great way to expose this to assistive tech (currently being done with aria-labels reading out instructions) but also this doesn't seem very discoverable to many people without specific instructions being given on the page.

I'd like to propose an alternative design that shows the "exclusion" action on hover/focus on each option. (This could be further extended to show both an "exclusion" and "inclusion" actions if there's concern that people would then stop clicking on the option itself for "inclusion" - the default action.)

Quick prototype showing just the "exclusion" action on hover:
Kapture 2020-06-16 at 12 18 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitydesign decisionUse this to flag an item that needs input from the design team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions