- Issue created by @orb
- ๐บ๐ฆUkraine orb
Spectrum widget - has widget settings with Empty color
- ๐ณ๐ฑNetherlands zebda
I'm also looking for a option like this...when I use the option to have multiple colors in one field (multi value field) I also want to be able to remove colors. When using the HTML 5 widget which is the best accessible one (Spectrum can't be used using the keyboard) I'm not able to empty the field is there some kind of work around or way to solve this? Is there a remove item buttons just like there is an add item button.
Arijit Acharya โ made their first commit to this issueโs fork.
@orb @zebda
The HTML5 widget in this module doesn't allow for an empty selection. Once a color is chosen and saved, it becomes the default value. This means that leaving the color picker empty is not supported, and it inherits the default color set.
Unlike the color picker, the Spectrum widget is actually a text field which allows users to leave the field empty, providing an option for no color selection.
Additionally, to address the challenge of removing items when the field is set to multi-valued, I've prepared a patch that adds a remove button. This patch is applicable until Drupal version 10.2.2. It's worth mentioning that in Drupal 10.2.2, the core fixes the mentioned bug, and the remove button is already available.- Status changed to Needs review
about 1 year ago 7:29am 6 February 2024 - last update
about 1 year ago 9 pass - ๐ฎ๐ณIndia atul_ghate
I have reviewed and applied patch #6, and it resolved the issue for the multi-value field in Drupal 9.5.0. The patch provided a button to remove items when the field is set to multi-valued, as described in comment #6. See the attached image.
It can be moved to RTBC. - Status changed to RTBC
10 months ago 11:52am 17 June 2024