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<HTMLUListElement> {
children?: React.ReactNode;
${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')};