Skip to content

Commit

Permalink
fix: disable hover modifier for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jan 8, 2025
1 parent ca8893f commit df8845f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/myst-to-react/src/hashLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export function HashLink({
<a
className={classNames('no-underline text-inherit hover:text-inherit', className, {
'select-none': !canSelectText,
'transition-opacity opacity-0 focus:opacity-100 group-hover:opacity-70': hover,
'[@media(hover:hover)]:transition-opacity [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:focus:opacity-100 [@media(hover:hover)]:group-hover:opacity-70':
hover,
'hover:underline': !hover,
})}
onClick={scroll}
Expand Down

0 comments on commit df8845f

Please sign in to comment.