diff --git a/frontend/src/__tests__/css.test.ts b/frontend/src/__tests__/css.test.ts index fc84802ba..01a8829c4 100644 --- a/frontend/src/__tests__/css.test.ts +++ b/frontend/src/__tests__/css.test.ts @@ -418,6 +418,53 @@ describe('CSS File Organization', () => { }); }); +describe('Touch Target Minimums (issue #983 / PR #989)', () => { + let css: string; + + beforeAll(() => { + const stylesDir = path.join(__dirname, '..', 'styles'); + const cssFiles = fs.readdirSync(stylesDir) + .filter(file => file.endsWith('.css')) + .map(file => fs.readFileSync(path.join(stylesDir, file), 'utf8')); + css = cssFiles.join('\n'); + }); + + test('coarse-pointer media query sets a 44x44 minimum on generic button selectors', () => { + // PR #989 added this rule so touch devices get HIG/WCAG-compliant tap + // targets. .btn-small and .toggle-password render as plain