]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17845 [1099483] Elements must have sufficient color contrast
authorKevin Silva <kevin.silva@sonarsource.com>
Tue, 10 Jan 2023 16:28:01 +0000 (17:28 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 13 Jan 2023 20:02:46 +0000 (20:02 +0000)
server/sonar-web/src/main/js/components/facet/FacetHeader.tsx
server/sonar-web/src/main/js/components/search-navigator.css

index 9fb79deb1eb0aa43e2002922e5c2a4ef2fc7648f..96a00bf418d8d83f65598d77a5aa7a5836a19c7d 100644 (file)
@@ -79,7 +79,10 @@ export default class FacetHeader extends React.PureComponent<Props> {
       name
     );
     return (
-      <div className="search-navigator-facet-header-wrapper display-flex-center">
+      <div
+        aria-disabled={disabled}
+        className="search-navigator-facet-header-wrapper display-flex-center"
+      >
         {this.props.onClick ? (
           <span className="search-navigator-facet-header display-flex-center">
             <button
index 0ef0cacc6ca7797cec7c5873f9a714a1e15c2357..e7ea7d675df32760dd0f502d9e6c02b8fa29c932 100644 (file)
@@ -59,7 +59,6 @@
 
 .search-navigator-facet-box-forbidden {
   background-color: transparent;
-  opacity: 0.5;
 }
 
 .search-navigator-facet-box-forbidden .search-navigator-facet-list,
   display: none;
 }
 
-.search-navigator-facet-box-forbidden .search-navigator-facet-header {
-  color: var(--secondFontColor);
-}
-
-.search-navigator-facet-box-forbidden .search-navigator-facet-header:hover {
-  color: var(--blue);
-}
-
 .search-navigator-facet-box-forbidden .search-navigator-facet-header {
   cursor: default;
-}
-
-.search-navigator-facet-box-forbidden .search-navigator-facet-header:hover {
-  color: var(--secondFontColor);
+  color: var(--gray60);
 }
 
 .search-navigator-facet,