Skip to content

Commit d492c1e

Browse files
dermatzCopilot
andcommitted
feat: update minimum size for small touch targets audit
Co-authored-by: Copilot <copilot@github.com>
1 parent 002d30f commit d492c1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/view/frontend/web/js/toolbar/audits/small-touch-targets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
import { applyHighlight, clearHighlight } from './highlight.js';
1111

12-
const MIN_SIZE = 44;
12+
const MIN_SIZE = 24;
1313

1414
/** @type {import('./index.js').AuditDefinition} */
1515
export default {
1616
key: 'small-touch-targets',
1717
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path><path d="M12 7a5 5 0 1 0 5 5"></path><path d="M15 3l0 4l4 0"></path><path d="M15 7l5 -5"></path></svg>',
1818
label: 'Small Touch Targets',
19-
description: `Highlight interactive elements smaller than ${MIN_SIZE}×${MIN_SIZE} px (WCAG 2.5.5)`,
19+
description: `Highlight interactive elements smaller than ${MIN_SIZE}×${MIN_SIZE} px (WCAG 2.5.8 AA)`,
2020

2121
/**
2222
* @param {object} context - Alpine toolbar component instance

0 commit comments

Comments
 (0)