Open alaindeurveilher opened 3 months ago
The motivation of this is to customize the home of the Breadcrumbs with a custom icon (in my case a brand icon of my company), and not use the
Hi,
Could you please share a stackblitz example so we can identify the issue clearly?
Hi, there it is: https://stackblitz.com/edit/angular-tv1w2t?file=src%2Fmain.ts
And if you inspect the rendered home element, you will notice that the svg is completely ignored and replaced by a series of white space characters:
<span class="p-menuitem-text">
<div class="flex gap-1">
<span>Brand</span>
</div></span>
Describe the bug
I want to define an inline SVG icon in a menu item for my breadcrumbs, but the icon is not rendered.
All the other HTML elements are rendered Except the svg.
Environment
Angular 17
Reproducer
No response
Angular version
17.3.0
PrimeNG version
17.12.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
Chrome
Steps to reproduce the behavior
<div class="flex gap-2"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">...</svg> Home</div>
protected items = [];
<p-breadcrumb class="max-w-full" [model]="items" [home]="home" />
Current behaviour: Only the text is displayed, and the generated HTML is as followed:
Expected behavior
It is expected to display the SVG icon followed by the Home title.