Problem/Motivation
Claro: Move svg image from templates to images folder.
drupal/core/themes/claro/templates/admin/indentation.html.twig from this file
<svg
xmlns="http://www.w3.org/2000/svg"
class="tree"
width="25"
height="25"
viewBox="0 0 25 25">
<path
class="tree__item tree__item-child-ltr tree__item-child-last-ltr tree__item-horizontal tree__item-horizontal-right"
d="M12,12.5 H25"
stroke="#888"/>
<path
class="tree__item tree__item-child-rtl tree__item-child-last-rtl tree__item-horizontal tree__horizontal-left"
d="M0,12.5 H13"
stroke="#888"/>
<path
class="tree__item tree__item-child-ltr tree__item-child-rtl tree__item-child-last-ltr tree__item-child-last-rtl tree__vertical tree__vertical-top"
d="M12.5,12 v-99"
stroke="#888"/>
<path
class="tree__item tree__item-child-ltr tree__item-child-rtl tree__vertical tree__vertical-bottom"
d="M12.5,12 v99"
stroke="#888"/>
</svg>Steps to reproduce
1. example : Go to admin/structure/menu/manage/admin
2. Check below menu link Here you can see parent and child link.
3. You can see space before the child menu. If you inspect you can see the svg tag.

Proposed resolution
Remove the svg tag code from the drupal/core/themes/claro/templates/admin/indentation.html.twig file and create a new svg file in the images folder.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | Screenshot 2024-10-04 at 6.25.29 AM.png | 32.36 KB | bnjmnm |
| #26 | Screenshot 2024-10-04 at 6.28.13 AM.png | 21.54 KB | bnjmnm |
| #19 | Screenshot 2024-08-20 at 5.07.25 PM.png | 1.57 MB | shweta__sharma |
| #18 | Screenshot from 2024-08-14 20-44-13.png | 141.41 KB | sagarmohite0031 |
| #18 | Screenshot from 2024-08-14 20-44-09.png | 179.79 KB | sagarmohite0031 |
Issue fork drupal-3226309
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:
- 3226309-claro-move-svg
changes, plain diff MR !8672
Comments
Comment #8
sanket.tale commentedCreated MR for the issue please review it.
Steps to reproduce
Before :-
After :-
Comment #9
sanket.tale commentedComment #10
smustgrave commentedIssue summary should follow standard template.
Also may need submaintainer sign off
Comment #11
sanket.tale commentedComment #12
sanket.tale commentedComment #13
bhumikavarshney commentedThe issue mentioned that svg image code drupal/core/themes/claro/templates/admin/indentation.html.twig added in this template need to be moved to image folder.
But this merge request https://git.drupalcode.org/project/drupal/-/merge_requests/8672/diffs?co... added the same svg by pseudo element.
So need more information do we need to include svg from img tag by using the image source in the url.
As you can refer the
Proposed resolution
Remove the svg tag code from the drupal/core/themes/claro/templates/admin/indentation.html.twig file and create a new svg file in the images folder.
Comment #14
ahsannazir commentedThe SVG code has been removed from twig file and SVG has been moved to images/src folder.
Comment #15
kanchan bhogade commentedHi
I've tested MR 8672 on Drupal 11.x
MR is applied cleanly...
Test Result:
The SVG code has been removed from the twig file.
Attaching SS for reference
Comment #16
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #17
sanket.tale commentedComment #18
sagarmohite0031 commentedI have tried to apply MR !8672 but MR is failing.
Please check Error screenshot.
Comment #19
shweta__sharma commentedI have applied MR 8672, but when I try to apply it locally, I receive an error. Attached a screenshot.
Comment #20
shweta__sharma commentedComment #21
sanket.tale commentedComment #22
sanket.tale commentedComment #23
sanket.tale commentedComment #24
smustgrave commentedComment #25
smustgrave commentedComment #26
bnjmnmThis is intentionally added as an SVG document so it can receive CSS styling. This is responsible for the lines that show the relationship between tabledrag items that are seen while dragging. It functions as dynamic element in the UI, not just a background image.
Without the css to conditionally hide/show portions of the SVG this either results in losing the lines altogether or having ALL the lines visible at all times we don't want this 👇 (nor do we want those lines to be removed entirely)