const rules = [
{
pattern: 'Should be ordered or unordered.',
comment: `By default List uses ul tag. To use ordered list
(and ol tag), set ordered prop to true.`,
status: 'DONE',
tests: 'DONE',
},
{
pattern:
'Should have only children with listitem role.',
comment: 'ListItem component can be used.',
status: 'DONE',
tests: 'N/A',
},
{
pattern: 'Can have an accessible name.',
comment: `Can be named by:
aria-label propIDREF) set for the aria-labelledby
prop that refers to a visible element.list role.',
comment: 'List can be used.',
status: 'DONE',
tests: 'N/A',
},
];
export const listItemIconRules = [
{
pattern: 'Can be hidden from the accessibility tree.',
comment:
'If this does not provide any information, it can be hidden with the aria-hidden attribute.',
status: 'DONE',
tests: 'N/A',
},
];
export default rules;