Add title (tooltip) + aria-label (screen reader) to the 13 icon-only buttons across Accounts, BookingRules, BookingTexts, Classes, Transactions, PendingBookings, and TransactionSplitDialog. Buttons that already have visible text are unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
1.2 KiB
Text
24 lines
1.2 KiB
Text
@page "/Classes"
|
|
@rendermode InteractiveServer
|
|
|
|
<PageTitle>Klassen</PageTitle>
|
|
|
|
<FluentButton IconStart="@(new Icons.Regular.Size16.Add())" Appearance="Appearance.Neutral" OnClick="AddAsync">Neue Klasse hinzufügen</FluentButton>
|
|
<FluentPaginator State="@pagination" SummaryTemplate="@template" />
|
|
|
|
<FluentDataGrid Items="@subclassQueryable" Pagination="@pagination" RowSize="DataGridRowSize.Medium">
|
|
<PropertyColumn Property="@(p => p.Number)" Sortable="true" IsDefaultSortColumn="true" Width="200px" />
|
|
<PropertyColumn Property="@(p => p.Name)" Sortable="true" />
|
|
<TemplateColumn Align="Align.Center" Width="50px">
|
|
<FluentButton IconEnd="@(new Icons.Regular.Size16.Delete())" Appearance="Appearance.Neutral" title="Löschen" aria-label="Löschen" OnClick="@(() => DeleteAsync(context.Id))" />
|
|
</TemplateColumn>
|
|
<TemplateColumn Align="Align.Center" Width="50px">
|
|
<FluentButton IconEnd="@(new Icons.Regular.Size16.Edit())" Appearance="Appearance.Neutral" title="Bearbeiten" aria-label="Bearbeiten" OnClick="@(() => EditAsync(context.Id))" />
|
|
</TemplateColumn>
|
|
</FluentDataGrid>
|
|
|
|
@code
|
|
{
|
|
private RenderFragment template = @<span />;
|
|
PaginationState pagination = new PaginationState() { ItemsPerPage = 20 };
|
|
}
|