Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep compact actions at accessible target size
pulse-triage[bot]86f8073c0a7a
diff --git a/frontend-modern/DESIGN_SYSTEM.md b/frontend-modern/DESIGN_SYSTEM.mdindex 9b5628f256..afb4f9c8a3 100644--- a/frontend-modern/DESIGN_SYSTEM.md+++ b/frontend-modern/DESIGN_SYSTEM.md@@ -15,6 +15,7 @@ This document outlines the standard UI primitives, tokens, and components that c- Routed surfaces must use shared header primitives (`PageHeader`, `SectionHeader`, `SettingsPanel`, `OperationsPanel`) instead of raw `<h1>` markup.- Visible form labels must either use `for` with a matching control ID or wrap a native labelable control; use a heading, paragraph, or span for non-control captions.- Shared form controls must keep a stable accessible name as their value changes; a placeholder is input guidance, not a label.+- Compact pointer targets must remain at least 24 by 24 CSS pixels, including icon and copy actions, per [WCAG 2.2 Target Size (Minimum)](https://www.w3.org/TR/WCAG22/#target-size-minimum).- Only explicit non-visual route wrappers are exempt from header primitive requirements.- Theme ownership policy:- Only `src/utils/theme.ts` and `index.html` may read/write theme keys (`pulseThemePreference`, `darkMode`, `pulse_dark_mode`) or toggle the root `dark` class.diff --git a/frontend-modern/src/components/shared/Button.test.tsx b/frontend-modern/src/components/shared/Button.test.tsxindex 4312d64dd5..ee9eee77e3 100644--- a/frontend-modern/src/components/shared/Button.test.tsx+++ b/frontend-modern/src/components/shared/Button.test.tsx@@ -230,6 +230,8 @@ describe('Button', () => {const copyUrlButton = screen.getByRole('button', { name: 'Copy URL' });expect(copyUrlButton).toHaveClass('border-border');+ expect(copyUrlButton).toHaveClass('min-h-6');+ expect(copyUrlButton).toHaveClass('min-w-6');expect(copyUrlButton).toHaveClass('min-h-7');copyUrlButton.click();expect(onCopy).toHaveBeenCalledWith('https://example.test');@@ -237,6 +239,8 @@ describe('Button', () => {const chipButton = screen.getByRole('button', { name: 'Copy 8443/tcp' });expect(chipButton).toHaveClass('bg-surface-alt');expect(chipButton).toHaveClass('text-[10px]');+ expect(chipButton).toHaveClass('min-h-6');+ expect(chipButton).toHaveClass('min-w-6');expect(screen.getByRole('button', { name: 'Copy blank' })).toBeDisabled();@@ -287,7 +291,11 @@ describe('Button', () => {expect(button).toHaveClass('w-6');expect(button).toHaveClass('bg-blue-50');- expect(screen.getByRole('button', { name: 'Queued edit' })).toHaveClass('h-5');+ const queuedEditButton = screen.getByRole('button', { name: 'Queued edit' });+ expect(queuedEditButton).toHaveClass('h-6');+ expect(queuedEditButton).toHaveClass('w-6');+ expect(queuedEditButton).toHaveClass('min-h-6');+ expect(queuedEditButton).toHaveClass('min-w-6');expect(screen.getByRole('button', { name: 'Open help' })).toHaveClass('border-border');expect(screen.getByRole('button', { name: 'Notifications enabled' })).toHaveClass('bg-surface-alt',diff --git a/frontend-modern/src/components/shared/__tests__/buttonModel.branchcov0712.test.ts b/frontend-modern/src/components/shared/__tests__/buttonModel.branchcov0712.test.tsindex aed983d926..a1d1e89b1e 100644--- a/frontend-modern/src/components/shared/__tests__/buttonModel.branchcov0712.test.ts+++ b/frontend-modern/src/components/shared/__tests__/buttonModel.branchcov0712.test.ts@@ -23,6 +23,15 @@ import type {} from '@/components/shared/buttonModel';describe('buttonModel.branchcov2', () => {+ it('keeps compact icon and copy targets at the WCAG 2.2 minimum size', () => {+ expect(COPY_VALUE_BUTTON_BASE_CLASS).toContain('min-h-6');+ expect(COPY_VALUE_BUTTON_BASE_CLASS).toContain('min-w-6');+ expect(COPY_VALUE_BUTTON_SIZE_CLASSES.xs).toBe('min-h-6 min-w-6');+ expect(ACTION_ICON_BUTTON_BASE_CLASS).toContain('min-h-6');+ expect(ACTION_ICON_BUTTON_BASE_CLASS).toContain('min-w-6');+ expect(ACTION_ICON_BUTTON_SIZE_CLASSES['2xs']).toBe('h-6 w-6');+ });+describe('getButtonClass', () => {it('uses the default parameter when called with no arguments (variant=secondary, size=md)', () => {// Drives the `options: ButtonClassOptions = {}` default-parameter armdiff --git a/frontend-modern/src/components/shared/buttonModel.ts b/frontend-modern/src/components/shared/buttonModel.tsindex 6f2743e81f..0a8142b93b 100644--- a/frontend-modern/src/components/shared/buttonModel.ts+++ b/frontend-modern/src/components/shared/buttonModel.ts@@ -96,7 +96,7 @@ export type ActionIconButtonTone =export type ActionIconButtonSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg';export const COPY_VALUE_BUTTON_BASE_CLASS =- 'inline-flex shrink-0 items-center justify-center rounded transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50';+ 'inline-flex min-h-6 min-w-6 shrink-0 items-center justify-center rounded transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50';export const COPY_VALUE_BUTTON_VARIANT_CLASSES: Record<CopyValueButtonVariant, string> = {neutral:@@ -107,7 +107,7 @@ export const COPY_VALUE_BUTTON_VARIANT_CLASSES: Record<CopyValueButtonVariant, s};export const COPY_VALUE_BUTTON_SIZE_CLASSES: Record<CopyValueButtonSize, string> = {- xs: 'min-h-5 min-w-5',+ xs: 'min-h-6 min-w-6',sm: 'min-h-6 min-w-6',md: 'min-h-7 min-w-7',lg: 'min-h-8 min-w-8 rounded-md',@@ -131,7 +131,7 @@ export const getCopyValueButtonClass = (options: CopyValueButtonClassOptions = {.join(' ');export const ACTION_ICON_BUTTON_BASE_CLASS =- 'inline-flex shrink-0 items-center justify-center rounded-md transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50';+ 'inline-flex min-h-6 min-w-6 shrink-0 items-center justify-center rounded-md transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50';export const ACTION_ICON_BUTTON_TONE_CLASSES: Record<ActionIconButtonTone, string> = {neutral: 'text-base-content hover:bg-surface-hover hover:text-base-content',@@ -157,7 +157,7 @@ export const ACTION_ICON_BUTTON_TONE_CLASSES: Record<ActionIconButtonTone, strin};export const ACTION_ICON_BUTTON_SIZE_CLASSES: Record<ActionIconButtonSize, string> = {- '2xs': 'h-5 w-5',+ '2xs': 'h-6 w-6',xs: 'h-6 w-6',sm: 'h-7 w-7',md: 'h-8 w-8',