chore(ui): clear eslint label-association bucket

- Frontend accessibility cleanup:
  - add concrete `for` and `id` or `inputId` bindings where labels map to real inputs, selects, and number fields
  - convert remaining row headers and grouped-control captions from `<label>` to `<span>` where the markup described composite controls rather than a single form element
- Lint progress:
  - clear the remaining `@angular-eslint/template/label-has-associated-control` backlog from 109 issues to 0
  - reduce total frontend lint errors from 532 to 423 while keeping the next accessibility buckets isolated
- Validation:
  - `just ui lint`
This commit is contained in:
James Cox
2026-04-22 17:26:47 -04:00
committed by Zach Yale
parent 0a407f6fae
commit b03ecf3a5e
34 changed files with 157 additions and 130 deletions
@@ -21,8 +21,9 @@
<div class="dialog-content">
<div class="form-fields">
<div class="form-field">
<label class="field-label">{{ t('emailProvider') }}</label>
<label class="field-label" for="book-sender-provider">{{ t('emailProvider') }}</label>
<p-select
inputId="book-sender-provider"
[options]="emailProviders"
optionLabel="label"
[placeholder]="t('selectProvider')"
@@ -33,8 +34,9 @@
</div>
<div class="form-field">
<label class="field-label">{{ t('recipient') }}</label>
<label class="field-label" for="book-sender-recipient">{{ t('recipient') }}</label>
<p-select
inputId="book-sender-recipient"
[options]="emailRecipients"
optionLabel="label"
[placeholder]="t('selectRecipient')"
@@ -47,7 +49,7 @@
@if (emailableFiles.length > 0) {
<div class="form-field">
<label class="field-label">{{ t('fileFormat') }}</label>
<span class="field-label">{{ t('fileFormat') }}</span>
<div class="format-options">
@for (file of emailableFiles; track file.id) {
<div class="format-option" [class.selected]="selectedFileId === file.id">