Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons momentarily displayed as text when using radzen appearance toggle #1884

Open
rojait00 opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@rojait00
Copy link

When toggling the appearance of my .NET 9.0 Web App using the RadzenAppearanceToggle, all icons (RadzenIcon) disappear for about a second before automatically reloading. For this second the icons are displayed as text.

Steps To Reproduce

  • Create a new .Net9 Web App project (PageRenderMode: InteractiveAuto, include default pages)
  • Follow the Radzen Get-Started instructions
  • Add two RadzenComponents to the Home.razor
<RadzenAppearanceToggle />
<RadzenIcon Icon="home" />
  • After starting the website and clicking the RadzenAppearanceToggle the "home" icon is displayed as text. After about a second it will again be displayed as expected.

Screenshots

After clicking:
image
After one second:
image

Desktop

  • OS: Win 11
  • Browser: Chrome Version 131.0.6778.205
  • Radzen Version: 5.7.2

Temporary Solution

My temporary solution is to include the material icons directly

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/iconfont/material-icons.min.css">

and override the radzen icon font variable to use these icons:

:root {
    --rz-icon-font-family: 'Material Icons';
}

(The default value of --rz-icon-font-family is Material Symbols.)

@rojait00 rojait00 changed the title Icons displayed as text when using radzen appearance toggle Icons momentarily displayed as text when using radzen appearance toggle Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant