mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
* accessibility issues fixes Various localizable accessibility related properties added tests updated side dialog close button id fixed more accessibility improvements tests fixed more accessibility fixes missing ARIA attributes added * Add rz-hidden-accessible styles * Update RadzenRating styles * RadzenSwitch fixed * RadzenFabMenu fixed * tests updated * Update expand/collapse button styles in RadzenDataGrid * Fix responsive pager styles --------- Co-authored-by: yordanov <vasil@yordanov.info>
20 lines
981 B
Plaintext
20 lines
981 B
Plaintext
@using Radzen
|
|
@using Radzen.Blazor.Rendering
|
|
@using Microsoft.AspNetCore.Components.Forms
|
|
@typeparam TValue
|
|
@inherits FormComponent<TValue>
|
|
@if (Visible)
|
|
{
|
|
<div @ref="@Element" @attributes="Attributes" class="@GetCssClass()" @onkeypress=@OnKeyPress @onkeypress:preventDefault @onclick=@Toggle @onclick:preventDefault style="@Style"
|
|
role="checkbox" aria-checked="@CheckBoxAriaChecked" aria-disabled="@(Disabled || ReadOnly ? "true" : "false")"
|
|
tabindex="@(Disabled || ReadOnly ? "-1" : $"{TabIndex}")" id="@GetId()">
|
|
<div class="rz-helper-hidden-accessible">
|
|
<input type="checkbox" @onchange=@Toggle value=@CheckBoxValue name=@Name id=@Name checked=@CheckBoxChecked aria-checked="@((Value as bool? == true).ToString().ToLowerInvariant())" @attributes="InputAttributes"
|
|
tabindex="-1" readonly="@ReadOnly">
|
|
</div>
|
|
<div class=@BoxClass>
|
|
<span class=@IconClass></span>
|
|
</div>
|
|
</div>
|
|
}
|