-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
I'm trying to present several filters that a user can choose from, like shown here in the material 3 spec.
Additionally the user should be able to create more filter with a custom value. These custom filters should be deletable. Such a filter chip with the "X" symbol is shown in the material 3 spec right here.
Note: In the last link the description says: "[...] filter chips may contain a trailing icon to directly remove the chip [...]" but subtext beneath the illustration says: "The X close icon indicates that a user can unselect the filter chip". I'm very sure "unselect" is wrong and should be replaced with "delete", since one can already unselect by tapping on the chip and as the "X" means deleting on other chip types.
Proposal
Add DeletableChipAttributes to FilterChip.
Note: As there is also an example with a "trailing menu item" maybe there should be a trailing attribute instead of only onDeleted etc? But as _RawChip specifically mentions deleteIcon I'm not sure if this would require a refactoring of other chip types as well.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status