const rules = [
{
pattern: 'Should have a role checkbox.',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Should be focusable and tabable.',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Should have an accessible name.',
comment: `Checkbox can be named by adding children.
Children should be purely presentational and do not include interactive elements.`,
status: 'DONE',
tests: 'DONE',
},
{
pattern:
'Should have visible checked / unchecked / indeterminate / disabled style.',
status: 'DONE',
tests: 'N/A',
},
{
pattern: 'Should have visible focus and hover style.',
status: 'DONE',
tests: 'N/A',
},
{
pattern:
'Should have a label with 4.5:1 contrast ratio against the background.',
comment:
'dark against white: 21:1, light against black: 20.9:1.',
status: 'DONE',
tests: 'N/A',
},
{
pattern:
'Should have a color indicator with 3:1 contrast ratio against the background.',
comment:
'dark against white: 21:1, light against black: 20.9:1.',
status: 'DONE',
tests: 'N/A',
},
{
pattern: 'Should respect Windows High Contrast mode.',
status: 'DONE',
tests: 'N/A',
},
{
pattern:
'Should have descriptive information about required and invalid state.',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Should respect prefers reduce motion settings.',
status: 'TO DO',
tests: 'N/A',
},
{
pattern:
'Should be activated by pressing Space and mouse click.',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Can have a clickable label.',
comment:
'Default clickable area of checkbox is 32x32px, children of the Checkbox are also clickable.',
status: 'DONE',
tests: 'DONE',
},
];
export default rules;