Needs work
Project:
Drupal core
Version:
main
Component:
image.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2020 at 07:54 UTC
Updated:
30 Jan 2023 at 21:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiComment #3
hardik_patel_12 commentedKindly review a patch
Comment #4
hardik_patel_12 commentedComment #6
hardik_patel_12 commentedKindly follow a new patch
Comment #7
hardik_patel_12 commentedComment #8
ankush_03Patch #6 Working fine, Also attached image for the same.
Comment #10
prabha1997 commentedI am working on this issue
Comment #11
prabha1997 commentedI created a patch for this issue
Comment #12
prabha1997 commentedComment #13
dhirendra.mishra commented@prabha, Your patch does not contain the changes from preprocess which was there in #6 comment.
Let me upload the latest patch along with Inter-diff from #12.
Comment #14
dhirendra.mishra commentedComment #16
dhirendra.mishra commentedComment #18
prabha1997 commentedComment #19
prabha1997 commentedwe can add classes directly using class attribute
Comment #21
prabha1997 commentedComment #22
krzysztof domański1. Re #19 @prabha1997 We should leave the variable attributes in templates.
Then we can use attributes.classes in child templates, for example:
2. Patch from #14 looks good. There are more templates to change. See
core/modules/image/templates/image-widget.html.twigandcore/themes/claro/templates/content-edit/image-widget.html.twig. One note,div {{there should be no spaces here.Comment #23
krzysztof domańskiNow I noticed that we should not change the templates in the module. #22.2 is not a good idea then.
Comment #24
swatichouhan012 commentedWe can use classes from parent template. I am attaching patch here please review.
Comment #26
swatichouhan012 commentedComment #33
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.