To be accessible, all components of a website have to be reachable using only the keyboard.
When I browse to any page in my website, I can tab around the @Body section with no problems. When I reach the last tab stop on the page, it jumps to the address bar and all the buttons on it, then back to the first tab stop of the @Body section.
Am I doing something wrong?
Here is my MainLayout.razor page:
<RadzenLayout Style="grid-template-areas: 'rz-header' 'rz-sidebar rz-body'">
<RadzenHeader Style="background-color:#006341">
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0">
<div class="p-1 rz-text-align-left" style="width:40%"><RadzenImage Path="@(_basePath + "/img/twra_logo_mini.png")" Click="Toggle"></RadzenImage> BIG GAME CONTROL PERMIT PORTAL</div>
<div class="p-1 rz-text-align-right" style="width:60%"><UserNameAndStatus/></div>
</RadzenStack>
</RadzenHeader>
<RadzenSidebar @bind-Expanded="@_sidebarExpanded" Style="height:100%;background-color:#006341">
<RadzenPanelMenu Multiple="false">
@if (_menuItems != null)
{
@foreach (var i in _menuItems)
{
@if (i.ParentId == 0 && i.Href != "")
{
<RadzenPanelMenuItem Text="@i.Text" Path="@i.Href" Icon="@i.Icon"></RadzenPanelMenuItem>
}
@if (i is { ParentId: 0, Href: "" })
{
<RadzenPanelMenuItem Text="@i.Text">
@foreach (var m in _menuItems.Where(m => m.ParentId == i.Id))
{
<RadzenPanelMenuItem Text="@m.Text" Path="@m.Href" Icon="@m.Icon"></RadzenPanelMenuItem>
}
</RadzenPanelMenuItem>
}
}
}
</RadzenPanelMenu>
</RadzenSidebar>
<RadzenBody>
<main role="main">
<div class="rz-p-4">
@Body
</div>
</main>
</RadzenBody>
</RadzenLayout>