Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Coral 3 Select dropdown doesn't render icon when using SVG reference

Avatar

Avatar
Give Back 5
Level 2
rafcap
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Boost 3
Boost 1
Give Back 3
Validate 1
View profile

Avatar
Give Back 5
Level 2
rafcap
Level 2

Likes

3 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Boost 3
Boost 1
Give Back 3
Validate 1
View profile
rafcap
Level 2

17-03-2021

Hi, I'm using a select dropdown menu and I need to render an icon and text for each option.

When I use a SVG reference the icon is not shown in the dialog

<selectIcon
	jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/coral/foundation/form/select"
    fieldLabel="Select icon"
    name="./selectIcon">
    <items jcr:primaryType="nt:unstructured">
        <default
                                        jcr:primaryType="nt:unstructured"
                                        text="No icon"
                                        value="null"/>
        <icona1
                                        jcr:primaryType="nt:unstructured"
                                        icon="/content/dam/project/filename.svg#reference"
                                        text="text"
                                        value="/content/dam/project/filename.svg#reference"/>
        <icona2
                                        jcr:primaryType="nt:unstructured"
                                        icon="/content/dam/project/filename.svg#reference"
                                        text="text"
                                        value="/content/dam/project/filename.svg#reference"/>
    </items>
</selectIcon>

 

If I try to render a file that doesn't use the #reference, the icon is shown in the dropdown in the dialog.

 

Any advice?

 

 

icon select SVG svg reference

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

18-03-2021

Hi,

I would suggest checking error logs. It might be possible that with #reference the node is not able to be resolved in AEM because /content/dam/project/filename.svg#referenc is not a valid node in AEM.

 

Answers (0)