export const rules = [ { pattern: 'Should have a role radiogroup.', status: 'DONE', tests: 'DONE', }, { pattern: 'Should have only one checked radio at a time.', status: 'DONE', tests: 'DONE', }, { pattern: 'Should have descriptive information about invalid state.', comment: 'State can be described using aria-description or aria-describedby.', status: 'DONE', tests: 'TO DO', }, { pattern: 'Can have an accessible name.', comment: `Can be named by: `, status: 'DONE', tests: 'DONE', }, { pattern: 'Can provide information about active descendant.', comment: `The aria-activedescendant attribute identifies the checked Radio within Radiogroup by referencing the id value of the radio button that is active.`, status: 'TO DO', tests: 'TO DO', }, { pattern: 'Can have an accessible description.', comment: 'Can be described by setting a value for aria-describedby prop.', status: 'DONE', tests: 'TO DO', }, ]; export const radioItemRules = [ { pattern: 'Should have a role radio.', status: 'DONE', tests: 'DONE', }, { pattern: 'Should be focusable.', status: 'DONE', tests: 'DONE', }, { pattern: 'Should have an accessible name.', comment: `Can be named by: `, status: 'DONE', tests: 'DONE', }, { pattern: 'Should have visible checked / unchecked / 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: 'Selected color should relate to the label color.', 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: 13.48:1.', status: 'DONE', tests: 'N/A', }, { pattern: 'Should respect Windows High Contrast mode.', status: 'TO DO', tests: 'N/A', }, { pattern: 'Should have descriptive information about required and invalid state.', comment: 'Invalid state is indicated by color change. Both states can be described using aria-describedby prop.', status: 'DONE', tests: 'DONE', }, { pattern: 'Should respect prefers reduce motion settings.', status: 'TO DO', tests: 'N/A', }, { pattern: 'Should be focused and checked by pressing arrows.', status: 'DONE', tests: 'N/A', }, { pattern: 'Should be nested in a radiogroup ', comment: 'CardRadioGroup component is required.', status: 'DONE', tests: 'N/A', }, { pattern: 'Can have a clickable label.', comment: 'The whole area of card is wrapped with clickable label.', status: 'DONE', tests: 'DONE', }, { pattern: 'Can have an accessible description.', comment: 'Can be described by setting a value for aria-description prop.', status: 'DONE', tests: 'DONE', }, ];