diff --git a/packages/gestalt/src/Link/InternalLink.tsx b/packages/gestalt/src/Link/InternalLink.tsx index 63f762b6e2..4b3b2b4a58 100644 --- a/packages/gestalt/src/Link/InternalLink.tsx +++ b/packages/gestalt/src/Link/InternalLink.tsx @@ -247,7 +247,6 @@ const InternalLinkWithForwardRef = forwardRef(function } }; return ( - // @ts-expect-error TS2322 Types of property '"aria-selected"' are incompatible. Type '"section" | undefined' is not assignable to type 'Booleanish | undefined' (function : undefined } aria-label={accessibilityLabel} - aria-selected={ - accessibilityCurrent && accessibilityCurrent === 'section' - ? accessibilityCurrent - : undefined - } + aria-selected={accessibilityCurrent && accessibilityCurrent === 'section' ? true : undefined} className={isSearchGuide ? searchGuideClassNames : className} data-test-id={dataTestId} href={disabled ? undefined : href}