Browse Source

[Beta] Don't animate links

main
Dan Abramov 2 years ago
parent
commit
980baffbc1
  1. 2
      beta/src/components/MDX/Link.tsx

2
beta/src/components/MDX/Link.tsx

@ -15,7 +15,7 @@ function Link({
...props ...props
}: JSX.IntrinsicElements['a']) { }: JSX.IntrinsicElements['a']) {
const classes = const classes =
'inline text-link dark:text-link-dark break-normal border-b border-link border-opacity-0 hover:border-opacity-100 duration-100 ease-in transition leading-normal'; 'inline text-link dark:text-link-dark break-normal border-b border-link border-opacity-0 hover:border-opacity-100 leading-normal';
const modifiedChildren = React.Children.toArray(children).map( const modifiedChildren = React.Children.toArray(children).map(
(child: any) => { (child: any) => {
if (child.type?.mdxName && child.type?.mdxName === 'inlineCode') { if (child.type?.mdxName && child.type?.mdxName === 'inlineCode') {

Loading…
Cancel
Save