Needs work
Project:
Drupal core
Version:
main
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2026 at 07:21 UTC
Updated:
4 Nov 2026 at 16:41 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #3
adamps commentedThe test fail appears to be unrelated to this fix.
Comment #4
dcam commentedI was able to use the steps to reproduce the issue. I was pretty sure that this is an in appropriate placement of the "Add another..." button, but I also added a few other field types and none of them included the button in the description. So the change looks appropriate to me.
Since this is a template change, it needs a change record so that themers can be warned of the change. It should include "before" and "after" examples of the markup. I'm setting the status to Needs Work for that. See an example at https://www.drupal.org/node/3523777.
I also think that this will need regression tests. So I'm tagging the issue for that.
Comment #5
longwaveI am not convinced that many themes will be overriding this? I'm also not sure it needs tests, the only test I can think of is one that validates the specific HTML structure, but I don't think we can test the bug directly as described.
Comment #6
dcam commented@longwave If you don't think that tests and a CR are necessary, then I'm not going to argue with you. But I will point out precedent from a similar issue involving descriptions, #3459838: Form element #field_prefix is shown before #description. In that issue we added tests that, yes, verified the HTML structure. And I wrote a change record. So my review comments were based on that.
Since there is a minor visual difference I've added screenshots to the issue summary.
Comment #7
dcam commentedThose were the wrong screenshots.
Comment #8
dcam commentedComment #9
alexpottI think a small change record here would be great - just for themers. I agree with no tests.
From a semantic sense, moving the add another item outside of the description div is correct. Does this result in any change in claro or default admin - as these are the normal themes where this button will appear.
Once the default admin/claro question and the change record exists this can go back to RTBC.
Comment #10
dcam commentedYes. default_admin overrides this template. Claro does not as far as I can tell. Neither does the Starterkit theme.
I wrote a change record, but will leave the status at Needs Work for the default_admin change.
Comment #11
alexpottSo should we be making the same change to the default admin theme - I think this change has semantic benefits too - the button is not part of the description. And does it result in changes if we move it... and what about claro?