Skip to content

Commit

Permalink
MudIcon: Add role="img" (MudBlazor#8915)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers authored May 8, 2024
1 parent 4e271a6 commit a6153b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MudBlazor/Components/Icon/MudIcon.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@if (!string.IsNullOrEmpty(Icon) && Icon.Trim().StartsWith("<"))
{
<svg @attributes="UserAttributes" class="@Classname" style="@Style" focusable="false" viewBox="@ViewBox" aria-hidden="true">
<svg @attributes="UserAttributes" class="@Classname" style="@Style" focusable="false" viewBox="@ViewBox" aria-hidden="true" role="img">
@if (Title != null)
{
<title>@Title</title>
Expand Down

0 comments on commit a6153b6

Please sign in to comment.