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
@@ -138,8 +138,9 @@
<div class="form-fields">
<div class="form-field">
<label>Icon Name</label>
<label for="icon-picker-svg-name">Icon Name</label>
<input
id="icon-picker-svg-name"
type="text"
pInputText
[(ngModel)]="svgName"
@@ -149,8 +150,9 @@
</div>
<div class="form-field">
<label>SVG Code</label>
<label for="icon-picker-svg-code">SVG Code</label>
<textarea
id="icon-picker-svg-code"
pInputTextarea
[(ngModel)]="svgContent"
(ngModelChange)="onSvgContentChange()"
@@ -15,7 +15,7 @@
(click)="widthPanel.toggle($event)"></i>
<p-popover #widthPanel appendTo="body">
<div class="sidebar-width-popover">
<label class="sidebar-width-popover-label">{{ sidebarWidth }}px</label>
<span class="sidebar-width-popover-label">{{ sidebarWidth }}px</span>
<p-slider
[(ngModel)]="sidebarWidth"
[min]="175"
@@ -2,7 +2,7 @@
<div class="upload-dialog-content">
<div class="upload-section">
<div class="file-selector">
<label class="file-label">{{ t('chooseFile') }}</label>
<label class="file-label" for="upload-dialog-file-input">{{ t('chooseFile') }}</label>
<p-button
[label]="t('selectImage')"
icon="pi pi-upload"
@@ -12,6 +12,7 @@
</p-button>
</div>
<input
id="upload-dialog-file-input"
#fileInput
type="file"
accept=".jpg,.jpeg,.png,image/jpeg,image/png"