Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Oct 24, 2024
1 parent dc3f3b9 commit 1d64ed8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/gestalt/src/Link/InternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ const InternalLinkWithForwardRef = forwardRef<HTMLAnchorElement, Props>(function
}
};
return (
// @ts-expect-error TS2322 Types of property '"aria-selected"' are incompatible. Type '"section" | undefined' is not assignable to type 'Booleanish | undefined'
<a
ref={innerRef}
aria-current={
Expand All @@ -256,11 +255,7 @@ const InternalLinkWithForwardRef = forwardRef<HTMLAnchorElement, Props>(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}
Expand Down

0 comments on commit 1d64ed8

Please sign in to comment.