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:
+7
-7
@@ -83,7 +83,7 @@
|
||||
|
||||
<div class="section-header">{{ t('fontSettings') }}</div>
|
||||
<div class="control">
|
||||
<label>{{ t('fontSize') }}</label>
|
||||
<span>{{ t('fontSize') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseFontSize()">−</button>
|
||||
@@ -93,7 +93,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<label>{{ t('lineHeight') }}</label>
|
||||
<span>{{ t('lineHeight') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseLineHeight()">−</button>
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="section-header">{{ t('layout') }}</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('readingFlow') }}</label>
|
||||
<span>{{ t('readingFlow') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="radio-group">
|
||||
<label>
|
||||
@@ -152,7 +152,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxColumns') }}</label>
|
||||
<span>{{ t('maxColumns') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxColumnCount()">−</button>
|
||||
@@ -163,7 +163,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('columnGap') }}</label>
|
||||
<span>{{ t('columnGap') }}</span>
|
||||
<div class="control-right gap-control">
|
||||
<input
|
||||
#gapInput
|
||||
@@ -179,7 +179,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxWidth') }}</label>
|
||||
<span>{{ t('maxWidth') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxInlineSize()">−</button>
|
||||
@@ -190,7 +190,7 @@
|
||||
</div>
|
||||
|
||||
<div class="control">
|
||||
<label>{{ t('maxHeight') }}</label>
|
||||
<span>{{ t('maxHeight') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseMaxBlockSize()">−</button>
|
||||
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
<div class="nav-section">
|
||||
<div class="goto-row">
|
||||
<label>{{ t('goTo') }}</label>
|
||||
<input type="number" [value]="currentPercentage" #percentInput
|
||||
<label for="reader-go-to-percentage">{{ t('goTo') }}</label>
|
||||
<input id="reader-go-to-percentage" type="number" [value]="currentPercentage" #percentInput
|
||||
(keydown.enter)="onGoToPercentage(percentInput.value)" [min]="0" [max]="100"/>
|
||||
<span>%</span>
|
||||
<button class="go-btn" (click)="onGoToPercentage(percentInput.value)" [title]="t('goToPercentage')">{{ t('go') }}</button>
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@
|
||||
<div class="panel-body">
|
||||
<!-- Dark Mode -->
|
||||
<div class="control">
|
||||
<label>{{ t('darkMode') }}</label>
|
||||
<span>{{ t('darkMode') }}</span>
|
||||
<div class="control-right">
|
||||
<span class="mode-icon sun" [class.active]="!isDarkMode">☀️</span>
|
||||
<button class="switch" [class.active]="isDarkMode" (click)="toggleDarkMode()">
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<!-- Font Size -->
|
||||
<div class="control">
|
||||
<label>{{ t('fontSize') }}</label>
|
||||
<span>{{ t('fontSize') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseFontSize()">−</button>
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<!-- Line Spacing -->
|
||||
<div class="control">
|
||||
<label>{{ t('lineSpacing') }}</label>
|
||||
<span>{{ t('lineSpacing') }}</span>
|
||||
<div class="control-right">
|
||||
<div class="stepper">
|
||||
<button (click)="decreaseLineHeight()">−</button>
|
||||
|
||||
Reference in New Issue
Block a user