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
@@ -23,12 +23,12 @@
<div class="shelf-container">
<div class="shelf-fields">
<div class="shelf-row">
<label class="label">{{ t('shelfNameLabel') }}</label>
<input type="text" pInputText [(ngModel)]="shelfName" [placeholder]="t('shelfNamePlaceholder')" class="input"/>
<label class="label" for="shelf-edit-name">{{ t('shelfNameLabel') }}</label>
<input id="shelf-edit-name" type="text" pInputText [(ngModel)]="shelfName" [placeholder]="t('shelfNamePlaceholder')" class="input"/>
</div>
<div class="shelf-row">
<label class="label">{{ t('shelfIconLabel') }}</label>
<span class="label">{{ t('shelfIconLabel') }}</span>
<div class="icon-section">
@if (!selectedIcon) {
<p-button [label]="t('selectIcon')" icon="pi pi-search" [outlined]="true" severity="info" (onClick)="openIconPicker()"></p-button>
@@ -51,7 +51,7 @@
@if (isAdmin) {
<div class="shelf-row">
<label class="label">{{ t('visibilityLabel') }}</label>
<span class="label">{{ t('visibilityLabel') }}</span>
<div class="visibility-section" style="display: flex; align-items: center; gap: 0.5rem;">
<p-checkbox [(ngModel)]="isPublic" [binary]="true" inputId="publicShelf"></p-checkbox>
<label for="publicShelf" style="cursor: pointer; user-select: none;">{{ t('publicShelfLabel') }}</label>