|
|
|
|
@ -119,6 +119,10 @@ export default {
|
|
|
|
|
code: 'a11y-no-interactive-element-to-noninteractive-role',
|
|
|
|
|
message: `A11y: <${element}> cannot have role '${role}'`
|
|
|
|
|
}),
|
|
|
|
|
a11y_no_noninteractive_element_to_interactive_role: (role: string | boolean, element: string) => ({
|
|
|
|
|
code: 'a11y-no-noninteractive-element-to-interactive-role',
|
|
|
|
|
message: `A11y: Non-interactive element <${element}> cannot have interactive role '${role}'`
|
|
|
|
|
}),
|
|
|
|
|
a11y_role_has_required_aria_props: (role: string, props: string[]) => ({
|
|
|
|
|
code: 'a11y-role-has-required-aria-props',
|
|
|
|
|
message: `A11y: Elements with the ARIA role "${role}" must have the following attributes defined: ${props.map(name => `"${name}"`).join(', ')}`
|
|
|
|
|
|