Problem/Motivation
Styling follow-up to #1038316: Allow for deletion of a single value of a multiple value field. That issue is about adding remove-item buttons to multi-value field widgets.
Once this is in core, it will need styling in Claro. Figma mockups already exist which explore this.
Proposed resolution
Style the remove-item function in the new multi-value field widgets to provide a better user experience for site authors.
Specification
Quick overview
This image is just a quick overview of the multi-value field widget specs. Please use this Figma link to the full specification as the main resource for specs.

| Comment | File | Size | Author |
|---|---|---|---|
| #24 | Screenshot 2024-06-07 at 5.59.47 PM.png | 34.99 KB | gauravvvv |
| #7 | 3053449-7-seven-whitespace-between-inputs-in-multivalue-widget-row.png | 23.32 KB | andrewmacpherson |
| #3 | cardinality_w_delete_function.png | 41.09 KB | evankay |
Issue fork drupal-3053449
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ckrinaComment #3
evankay commentedComment #4
evankay commentedComment #5
evankay commentedComment #6
ckrinaComment #7
andrewmacpherson commentedA few points:
Comment #8
andrewmacpherson commentedDidn't expect it to set the version to D9
Comment #9
idebr commentedThis is being implemented in #1038316: Allow for deletion of a single value of a multiple value field. I suggest we close this issue as a duplicate.
Comment #10
andrewmacpherson commentedThanks @idebr. That implementation issue is further along than this issue, and clarifies what the button is for. It't the functionality provided by the multiple fields remove button contrib module. It removes the input itself, instead of just clearing the value inside it.
Rather than close this as a duplicate, let's return it to the Claro queue as the styling follow-up. Updating the issue summary to clarify this.
Comment #11
ckrinaPostponing this until the design is done.
Comment #12
huzookaComment #20
lauriii#1038316: Allow for deletion of a single value of a multiple value field has been committed.
Comment #21
bgustafson commentedJust wondering if there is a plan for how to target the element to style it? I am needing to style the new button, and I'm not seeing anything very targetable; I also tried a theme preprocess but it's pretty messy because of the template preprocessing that's done on the form that puts it into a table and the buttons are in individual rows in cells that do not have an identifier either. Is a separate issue needed to add some targetable CSS to the markup (I searched but wasn't able to find one)?
Comment #24
gauravvvv commentedHere's After merge request !8329 screenshot:

Comment #25
smustgrave commented