Drawer Mini Font Awesome Icon issue

1 Answer 126 Views
Drawer
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 19 Jul 2022, 02:31 PM
I am using an icon class in the drawer items to show fontawesome icons, but every time the drawer is expanded or collapsed, it duplicates the icon on both sides of the text.  This only happens when MINI mode is true
Noah
Top achievements
Rank 2
Iron
Iron
Iron
commented on 21 Jul 2022, 03:40 PM

Ok, this only happens if you are trying to use one of their new "kits" from v6 or using their JS that inserts SVG.  It seems I am forced to use webfonts instead of SVG to get font awesome to work properly in drawer.

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 22 Jul 2022, 01:10 PM

Hello Noah,

I am not aware of the custom implementation in the Drawer component but it seems that the observed behavior might indeed be connected to the JS coming from the Font Awesome kit.

I saw that their team has created a specific Angular component for Angular projects:

https://fontawesome.com/docs/web/use-with/angular

Maybe giving their npm package a try could solve the issue.

As you noted, the Web Fonts work well with the Drawer (example with font-awesome/6.1.1).

I hope this information proves useful.

Regards,
Silviya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Drawer
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Silviya
Telerik team
Share this question
or