This is a migrated thread and some comments may be shown as answers.

TelerikIcon size

3 Answers 943 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Doug asked on 13 Jul 2020, 08:32 PM
     Is there a way to make a TelerikIcon bigger?

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Jul 2020, 07:55 AM

Hi Doug,

You can use CSS to increase their font size and if you want some granularity (as that can affect a lot of components and places), you can cascade through a parent class. Here's an example:

    <style>
        .my-specific-icon-container .k-icon,
        .my-specific-icon-container .k-icon::before {
            font-size: 48px;
            width: 48px;
            height: 48px;
        }

        .k-icon,
        .k-icon::before {
            font-size: 64px;
            width: 64px;
            height: 64px;
        }
    </style>
    <div class="my-specific-icon-container">
        <TelerikIcon Icon="@IconName.Audio" />
    </div>
    <TelerikIcon Icon="@IconName.Audio" />

 

Regards,
Marin Bratanov
Progress Telerik

0
George
Top achievements
Rank 1
Veteran
answered on 25 Nov 2020, 06:58 PM
It would be awesome if you fixed the TelerikIcon IconClass property.
0
Marin Bratanov
Telerik team
answered on 26 Nov 2020, 08:47 AM

Hello George,

What is the exact problem you are having with this parameter? I'm attaching here a screenshot from the way the sample from the docs works in the default project template.

<TelerikIcon IconClass="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the page, you can use your own CSS classes and font icon fonts *@

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Marin Bratanov
Telerik team
George
Top achievements
Rank 1
Veteran
Share this question
or