chore(ui): clear eslint presentation-label bucket
- Frontend accessibility cleanup: - replace presentational `<label>` elements with `<span>` in settings, reader preferences, and file-mover templates where the text was acting as a control-group heading rather than a form label - keep the markup semantics aligned with toggles, sliders, button groups, and custom components instead of forcing fake label associations - Lint progress: - reduce the `@angular-eslint/template/label-has-associated-control` backlog by removing false-positive label markup before the real control-association pass - Validation: - `just ui lint`
This commit is contained in:
+5
-5
@@ -3,7 +3,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('pageSpread') }}</label>
|
||||
<span class="setting-label">{{ t('pageSpread') }}</span>
|
||||
<div class="button-group">
|
||||
@for (spread of cbxSpreads; track spread) {
|
||||
<button
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('pageLayout') }}</label>
|
||||
<span class="setting-label">{{ t('pageLayout') }}</span>
|
||||
<div class="button-group">
|
||||
@for (mode of cbxViewModes; track mode) {
|
||||
<button
|
||||
@@ -49,7 +49,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('fitMode') }}</label>
|
||||
<span class="setting-label">{{ t('fitMode') }}</span>
|
||||
<div class="button-group">
|
||||
@for (mode of cbxFitModes; track mode) {
|
||||
<button
|
||||
@@ -74,7 +74,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('scrollMode') }}</label>
|
||||
<span class="setting-label">{{ t('scrollMode') }}</span>
|
||||
<div class="button-group">
|
||||
@for (mode of cbxScrollModes; track mode) {
|
||||
<button
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('backgroundColor') }}</label>
|
||||
<span class="setting-label">{{ t('backgroundColor') }}</span>
|
||||
<div class="theme-selector">
|
||||
@for (color of cbxBackgroundColors; track color) {
|
||||
<button
|
||||
|
||||
+12
-12
@@ -7,7 +7,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('theme') }}</label>
|
||||
<span class="setting-label">{{ t('theme') }}</span>
|
||||
<div class="theme-selector">
|
||||
@for (theme of themes; track theme) {
|
||||
<button
|
||||
@@ -38,7 +38,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('darkMode') }}</label>
|
||||
<span class="setting-label">{{ t('darkMode') }}</span>
|
||||
<div class="button-group">
|
||||
<button
|
||||
type="button"
|
||||
@@ -70,7 +70,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('fontFamily') }}</label>
|
||||
<span class="setting-label">{{ t('fontFamily') }}</span>
|
||||
<div class="button-group">
|
||||
@for (font of fonts; track font) {
|
||||
<button
|
||||
@@ -103,7 +103,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('fontSize') }}</label>
|
||||
<span class="setting-label">{{ t('fontSize') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="decreaseFontSize()"></p-button>
|
||||
<span class="font-size-value">{{ fontSize }}pt</span>
|
||||
@@ -119,7 +119,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('lineHeight') }}</label>
|
||||
<span class="setting-label">{{ t('lineHeight') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="decreaseLineHeight()"></p-button>
|
||||
<span class="font-size-value">{{ lineHeight.toFixed(1) }}</span>
|
||||
@@ -135,7 +135,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('textJustification') }}</label>
|
||||
<span class="setting-label">{{ t('textJustification') }}</span>
|
||||
<div class="button-group">
|
||||
<button
|
||||
type="button"
|
||||
@@ -164,7 +164,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('hyphenation') }}</label>
|
||||
<span class="setting-label">{{ t('hyphenation') }}</span>
|
||||
<div class="button-group">
|
||||
<button
|
||||
type="button"
|
||||
@@ -197,7 +197,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('flow') }}</label>
|
||||
<span class="setting-label">{{ t('flow') }}</span>
|
||||
<div class="button-group">
|
||||
<button
|
||||
type="button"
|
||||
@@ -226,7 +226,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('maxColumns') }}</label>
|
||||
<span class="setting-label">{{ t('maxColumns') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="maxColumnCount = maxColumnCount > 1 ? maxColumnCount - 1 : 1"></p-button>
|
||||
<span class="font-size-value">{{ maxColumnCount }}</span>
|
||||
@@ -242,7 +242,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('columnGap') }}</label>
|
||||
<span class="setting-label">{{ t('columnGap') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="decreaseGap()"></p-button>
|
||||
<span class="font-size-value">{{ gap * 100 | number : '1.0-0' }}%</span>
|
||||
@@ -258,7 +258,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('maxWidth') }}</label>
|
||||
<span class="setting-label">{{ t('maxWidth') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="decreaseMaxInlineSize()"></p-button>
|
||||
<span class="font-size-value">{{ maxInlineSize }}px</span>
|
||||
@@ -274,7 +274,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('maxHeight') }}</label>
|
||||
<span class="setting-label">{{ t('maxHeight') }}</span>
|
||||
<div class="font-size-controls">
|
||||
<p-button icon="pi pi-minus" size="small" rounded outlined (click)="decreaseMaxBlockSize()"></p-button>
|
||||
<span class="font-size-value">{{ maxBlockSize }}px</span>
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('pageSpread') }}</label>
|
||||
<span class="setting-label">{{ t('pageSpread') }}</span>
|
||||
<div class="button-group">
|
||||
@for (spread of spreads; track spread) {
|
||||
<button
|
||||
@@ -28,7 +28,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('pageZoom') }}</label>
|
||||
<span class="setting-label">{{ t('pageZoom') }}</span>
|
||||
<div class="button-group">
|
||||
@for (zoom of zooms; track zoom) {
|
||||
<button
|
||||
|
||||
+4
-4
@@ -14,7 +14,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('pdfLabel') }}</label>
|
||||
<span class="setting-label">{{ t('pdfLabel') }}</span>
|
||||
<div class="button-group">
|
||||
@for (item of scopeOptions; track item) {
|
||||
<button
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('ebookLabel') }}</label>
|
||||
<span class="setting-label">{{ t('ebookLabel') }}</span>
|
||||
<div class="button-group">
|
||||
@for (item of scopeOptions; track item) {
|
||||
<button
|
||||
@@ -60,7 +60,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('comicLabel') }}</label>
|
||||
<span class="setting-label">{{ t('comicLabel') }}</span>
|
||||
<div class="button-group">
|
||||
@for (item of scopeOptions; track item) {
|
||||
<button
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('streamingPdfLabel') }}</label>
|
||||
<span class="setting-label">{{ t('streamingPdfLabel') }}</span>
|
||||
<div class="button-group">
|
||||
@for (item of scopeOptions; track item) {
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user