Skip to content

Commit aa71bbf

Browse files
authored
docs: fix custom checkbox icons KB (#811)
1 parent 91f85b2 commit aa71bbf

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

knowledge-base/checkbox-custom-icon.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@ How do I change the checkbox icon? I want to use another icon, not the default c
2626

2727
## Solution
2828

29-
Add a `Class` to the component and cascade through it to alter the font icon glyph that is used.
29+
Add a `Class` to the CheckBox component. [Override the theme styles]({%slug themes-override%}) and change the default font icon glyphs.
3030

31-
You can replace it with a different glyph, even froma different font, you can chang the size of the icon and the checkbox and its color.
31+
You can replace the icons with different glyphs, even from a different font. You can also change the icon size and color.
32+
33+
The `k-icon` CSS class applies the custom font, which contains all [built-in Telerik font icons]({%slug general-information/font-icons%}). If you will use a different font, remove `k-icon`.
3234

3335
>caption How to change the checkbox icon
3436
3537
````CSHTML
36-
<TelerikCheckBox Value="true" Class="heart-icon">
37-
</TelerikCheckBox>
38-
<TelerikCheckBox Value="false" Class="heart-icon">
39-
</TelerikCheckBox>
40-
<TelerikCheckBox Value="false" Indeterminate="true" Class="heart-icon">
41-
</TelerikCheckBox>
38+
<TelerikCheckBox Value="true" Class="k-icon heart-icon" />
39+
<TelerikCheckBox Value="false" Class="k-icon heart-icon" />
40+
<TelerikCheckBox Value="false" Indeterminate="true" Class="k-icon heart-icon" />
4241
4342
<style>
4443
/* remove some built-in styles */

0 commit comments

Comments
 (0)