From 36b81f1ab8be0db30b4748826510e43114878371 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 14 Jul 2023 11:25:40 +0200 Subject: [PATCH] [NO JIRA] Fix project's disabled menu --- .../design-system/src/components/NavBarTabs.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/design-system/src/components/NavBarTabs.tsx b/server/sonar-web/design-system/src/components/NavBarTabs.tsx index 710738cd454..17a2b2bff88 100644 --- a/server/sonar-web/design-system/src/components/NavBarTabs.tsx +++ b/server/sonar-web/design-system/src/components/NavBarTabs.tsx @@ -24,9 +24,9 @@ import React from 'react'; import tw, { theme } from 'twin.macro'; import { themeBorder, themeColor, themeContrast } from '../helpers/theme'; import { isDefined } from '../helpers/types'; -import { ChevronDownIcon } from './icons/ChevronDownIcon'; import NavLink, { NavLinkProps } from './NavLink'; import Tooltip from './Tooltip'; +import { ChevronDownIcon } from './icons/ChevronDownIcon'; interface Props extends React.HTMLAttributes { children?: React.ReactNode; @@ -121,10 +121,10 @@ const NavBarTabLinkWrapper = styled.li` ${tw`sw-invisible`}; content: attr(data-text); } - &:has(a.disabled-link) > a, - &:has(a.disabled-link) > a:hover, - &:has(a.disabled-link) > a.hover, - &:has(a.disabled-link)[aria-expanded='true'] { + & > a.disabled-link, + & > a.disabled-link:hover, + & > a.disabled-link.hover, + & > a.disabled-link[aria-expanded='true'] { ${tw`sw-cursor-default`}; border-bottom: ${themeBorder('xsActive', 'transparent', 1)}; color: ${themeContrast('subnavigationDisabled')}; -- 2.39.5