Skip to content

Commit 46fa4a6

Browse files
committed
updates text
1 parent 7d3c8b1 commit 46fa4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/a11y-svg-has-accessible-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ruleTester = new RuleTester({
1212
})
1313

1414
const errorMessage =
15-
'SVG elements should have an accessible name. Add a `<title>` element as the first descendant of the `<svg>` or add an `aria-label` or `aria-labelledby` to the `<svg>` element.'
15+
'`<svg>` must have accessible text. Set `aria-label` or `aria-labelledby`, or nest a `<title>` element. However, if the `<svg>` is purely decorative, hide it with `aria-hidden="true"`.'
1616

1717
ruleTester.run('a11y-aria-label-is-well-formatted', rule, {
1818
valid: [

0 commit comments

Comments
 (0)