Rendering Changes in 13.0.0
Make sure that you are using a compatible Telerik CSS theme every time you upgrade Telerik UI for Blazor.
Apperance Classes
Starting from version 13.0.0, the Telerik Blazor components render appearance-related CSS classes only if the respective parameters are set explicitly. The following table lists the appearance parameters and the associated CSS classes. It uses a few specific components as an example, but the same idea applies to all components that use apperance parameters.
| Parameter Name | CSS Classes |
|---|---|
FillMode | Classes that end with
|
Rounded | Classes that start with
|
Size | Classes that end with
|
ThemeColor | Classes like
|
Some components like the Badge, Button, and Chip include their
FillModesetting in theirThemeColorclass, for example,k-badge-solid-primary,k-button-solid-base, ork-chip-solid-info.
Button Example
The following Telerik Button configuration...
<TelerikButton>Click Me</TelerikButton>
... produces the following HTML output:
| UI for Blazor 12.3.0 | UI for Blazor 13.0.0 |
|---|---|
|
HTML
|
HTML
|
TextBox Example
The following Telerik TextBox configuration...
<TelerikTextBox />
... produces the following HTML output:
| UI for Blazor 12.3.0 | UI for Blazor 13.0.0 |
|---|---|
|
HTML
|
HTML
|
DropDownList Example
The following Telerik DropDownList configuration...
<TelerikDropDownList Data="@DropDownListData"
@bind-Value="@DropDownListValue" />
... produces the following HTML output:
| UI for Blazor 12.3.0 | UI for Blazor 13.0.0 |
|---|---|
|
HTML
|
HTML
|
Grid Example
The following Telerik Grid configuration...
<TelerikGrid Data="@GridData" />
... produces the following HTML output:
| UI for Blazor 12.3.0 | UI for Blazor 13.0.0 |
|---|---|
|
HTML
|
HTML
|
Restore Old Rendering
Restoring the old rendering in version 13.0.0 is normally not necessary. In specific cases, you can set the appearance parameters explicitly to their previous default values, for example:
<TelerikButton FillMode="@ThemeConstants.Button.FillMode.Solid"
Rounded="@ThemeConstants.Button.Rounded.Medium"
Size="@ThemeConstants.Button.Size.Medium"
ThemeColor="@ThemeConstants.Button.ThemeColor.Base">
Click Me
</TelerikButton>
In the above snippet:
- The
SolidFillModerenders a classk-button-solid. - The
MediumRoundedrenders a classk-rounded-md. - The
MediumSizerenders a classk-button-md. - The
BaseThemeColorrenders a classk-button-base. Note that this class differs in version 12.3.0 where it used to bek-button-solid-base.
Chat
- The AppBar component in the Chat header is replaced by a ToolBar component. The
k-chat-headerclass is preserved. - The TextArea component is replaced by a PromptBox component.
- The
k-chat-file-wrapperCSS class is renamed tok-file-box-wrapper. - The
k-chat-fileclass is renamed tok-file-box. - The
k-chat-file-infoclass is renamed tok-file-info. - The
k-chat-file-sizeclass is renamed tok-file-size.
TreeView
- The
CaretAltRightandCaretAltDownexpand/collapse icons are replaced byChevronRightandChevronDown. - The
k-treeview-top,k-treeview-mid, andk-treeview-botclasses are no longer used. The same<span>elements use ak-treeview-item-contentclass instead. - The
k-focusandk-selectedclasses are rendered on the parentspan.k-treeview-item-contentinstead.
| UI for Blazor 12.3.0 | UI for Blazor 13.0.0 |
|---|---|
|
HTML
|
HTML
|