mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
RadzenTabs aria-selected accessibility issue
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
@implements IDisposable
|
||||
@if ((Tabs?.RenderMode == TabRenderMode.Server ? Visible : true))
|
||||
{
|
||||
<li role="tab" @attributes=@Attributes style=@getStyle() class=@Class>
|
||||
<a @onclick=@OnClick @onclick:preventDefault="true" id="@($"{Tabs?.Id ?? ""}-tabpanel-{Index}-label")"
|
||||
aria-selected=@(IsSelected? "true" : "false") aria-controls="@($"{Tabs?.Id ?? ""}-tabpanel-{Index}")" @onkeydown:stopPropagation>
|
||||
<li role="tab" @attributes=@Attributes style=@getStyle() class=@Class
|
||||
aria-selected=@(IsSelected ? "true" : "false") aria-controls="@($"{Tabs?.Id ?? ""}-tabpanel-{Index}")">
|
||||
<a @onclick=@OnClick @onclick:preventDefault="true" id="@($"{Tabs?.Id ?? ""}-tabpanel-{Index}-label")" @onkeydown:stopPropagation>
|
||||
@if (!string.IsNullOrEmpty(Icon))
|
||||
{
|
||||
<span class="notranslate rzi rz-tabview-icon" style="@(!string.IsNullOrEmpty(IconColor) ? $"color:{IconColor}" : null)">@Icon</span>
|
||||
|
||||
Reference in New Issue
Block a user