Skip to content

ebay-listbox-button: unselect current selection #594

@andrewdowis

Description

@andrewdowis

Description

For parity with native, users should be able to de-select a selected item from the dropdown. For example, in a menu with options A, B, C ...

  • User selects A
  • Menu closes
  • User opens menu, A is selected
  • User clicks "A" again
    • current behavior: nothing happens, dropdown stays open
    • desired outcome: option A is unselected, as if the user never clicked any options at all. Menu closes.

https://opensource.ebay.com/evo-web/ebayui-core/?path=/docs/buttons-ebay-listbox-button--documentation

Screenshots

Image

Figma link

https://www.figma.com/design/Apbzbvsv370cdY9IcezKYm/Salvage-parts-Condition-Grading-%7C-Working---Hand-off?node-id=5293-164340&m=dev

Engineering pre-requisites

  • Supports dark mode.
  • Supports responsive design.
  • Tokens have been provided (or already exist).

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions