since ‎04-12-2017
‎10-12-2019
arthurcavallari
Level 1
Re: Coral 3 Select dropdown renders icons twice when using SVGs
Avatar

arthurcavallari

arthurcavallari
- Adobe Experience Manager
Ah I see, I was hoping I was just using it wrong.Your javascript fix only removes the duplicates from the select options and misses the currently selected item, you could just hide them all using CSSimg.coral3-Icon-image:nth-child(2) { display: none;}

Views

468

Like

1

Replies

0
Coral 3 Select dropdown renders icons twice when using SVGs
Avatar

arthurcavallari

arthurcavallari
- Adobe Experience Manager
Hi all,I'm running AEM 6.4.4 and I'm trying to create a select dropdown with custom svg icons using the the new Coral 3 Select component (Select — Granite UI 1.0 documentation ), but the icons always get duplicated when the component is rendered.Does Coral-Icon support SVGs? If not, what is the proposed solution to render a select dropdown with icons?My previous implementation was setting the icons using javascript, but I got excited when I saw the Coral 3 component had an icon property.Here's w...

Views

732

Likes

2

Replies

3
Likes given to
Likes from