--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
> ``` # Diagnostics ``` invalid.jsx:2:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 1 │ <> > 2 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 │ 4 │ i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 2 │ ·· │ ------------------- ``` ``` invalid.jsx:3:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 1 │ <> 2 │ > 3 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4 │ 5 │ i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 3 │ ·· │ ------------------- ``` ``` invalid.jsx:4:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 2 │ 3 │ > 4 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 │ 6 │ i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 4 │ ·· │ ------------------- ``` ``` invalid.jsx:5:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 3 │ 4 │ > 5 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 │ 7 │ i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 5 │ ·· │ ------------------- ``` ``` invalid.jsx:6:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 4 │ 5 │ > 6 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 │ 8 │ > i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 6 │ ·· │ ------------------- ``` ``` invalid.jsx:7:3 lint/a11y/noAriaHiddenOnFocusable FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Disallow aria-hidden="true" from being set on focusable elements. 5 │ 6 │ > 7 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ > i aria-hidden should not be set to true on focusable elements because this can lead to confusing behavior for screen reader users. i Unsafe fix: Remove the aria-hidden attribute from the element. 7 │ ··text
│ ------------------ ```