Dropdown component - Standardising on how to clear selection
Problem
- From this discussion: gitlab-org/gitlab!43050 (comment 422606858)
- There doesn't seem to be a standard way to clear the selection from a dropdown
- For example, in Value Stream Management, the following approach was used...
Proposal
Standardise on a solution for clearing the selection from a dropdown:
- Document approach
- Add functionality at the component-level
There are a few ways of going about it...
When dropdown is open, the Action area for "clear selection"
Single selection | Multi selection |
---|---|
after dropdown closes, the action to "clear selection"
Single selection | Multi selection |
---|---|
Original proposal
| Dropdown open clear button | Dropdown closed clear button | Top-level selection clears | | ------ | ------ | ------ | | | | |
Edited by Camellia X Yang