const rules = [
{
pattern: 'Should have 4.5:1 contrast ratio.',
status: 'DONE',
tests: 'N/A',
},
{
pattern: 'Should have an accessible name for a close button.',
comment:
'Button can be named by closeButtonLabel prop, defaults to "close".',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Should have an accessible name for an icon.',
comment:
'Icon can be named by iconTitle prop, defaults to icon type.',
status: 'DONE',
tests: 'DONE',
},
{
pattern:
'Should have a possibility to hide an icon from accessibility tree.',
comment: 'Icon can be hidden by iconAriaHidden prop.',
status: 'DONE',
tests: 'DONE',
},
{
pattern: 'Can have an accessible name.',
comment: `Can be named by children, a label specified by aria-label prop or a value
(IDREF) set for the aria-labelledby prop that refers to an element.`,
status: 'DONE',
tests: 'DONE',
},
];
export default rules;