const rules = [
{
pattern: 'Should have no role.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should be hidden from accessibility tree.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should be displayed on trigger hover and focus.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should be dismissable by pressing Esc.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should be hoverable.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should be persistent.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should label or describe the trigger.',
comment:
'Tooltip content is linked to the trigger by aria-labelledby or aria-describedby.',
status: 'DONE',
tests: 'TO DO',
},
{
pattern: 'Should not be focusable of contain interactive elements.',
comment: 'Tooltip can contain only (styled) text and/or images.',
status: 'N/A',
tests: 'N/A',
},
{
pattern: 'Should be displayed if JS is not available.',
status: 'TO DO',
tests: 'TO DO',
},
{
pattern: 'Should respect Windows High Contrast mode.',
status: 'DONE',
tests: 'N/A',
},
{
pattern:
'Should have a content with 4.5:1 contrast ratio against the background.',
comment: 'black against white: 21:1.',
status: 'DONE',
tests: 'N/A',
},
{
pattern: 'Should respect prefers reduce motion settings.',
status: 'DONE',
tests: 'N/A',
},
];
export default rules;