Skip to content

Commit

Permalink
lint(no-aria-label): Use complex :not() pseudo-class notation - oopsi…
Browse files Browse the repository at this point in the history
…e :not(.a):not(.b, .c) === :not(.a, .b, .c)
  • Loading branch information
PhilippeVay committed Jul 29, 2023
1 parent a2f0a58 commit b8175fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sass/themes/_error.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ If image is decorative, please use `[role=presentation]` instead.
### Selector
```css
[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby]),
svg[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby])
[role="img"]:not([aria-hidden="true"], [aria-label], [aria-labelledby]),
svg[role="img"]:not([aria-hidden="true"], [aria-label], [aria-labelledby])
```
### Test
Expand All @@ -221,11 +221,11 @@ svg[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby])
</svg><span>†</span>
```
*/
[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby]) {
[role="img"]:not([aria-hidden="true"], [aria-label], [aria-labelledby]) {
@include error('no-aria-label');
}

svg[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby]) {
svg[role="img"]:not([aria-hidden="true"], [aria-label], [aria-labelledby]) {
@include error('no-aria-label', $self-closing: true);
}

Expand Down

0 comments on commit b8175fd

Please sign in to comment.