From b8175fd0ed5cb79dc32aaca3a50553b726dc9ea3 Mon Sep 17 00:00:00 2001 From: Philippe Date: Sat, 29 Jul 2023 13:54:23 +0200 Subject: [PATCH] lint(no-aria-label): Use complex :not() pseudo-class notation - oopsie :not(.a):not(.b, .c) === :not(.a, .b, .c) --- sass/themes/_error.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sass/themes/_error.scss b/sass/themes/_error.scss index 3f98a47a..a73fc108 100644 --- a/sass/themes/_error.scss +++ b/sass/themes/_error.scss @@ -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 @@ -221,11 +221,11 @@ svg[role="img"]:not([aria-hidden="true"]):not([aria-label], [aria-labelledby]) ``` */ -[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); }