Skip to content

Commit

Permalink
fix(Link): Remove ripple part of Link by disabling Tappable hoverMode (
Browse files Browse the repository at this point in the history
…#7088)

Убираем элементы с ripple-эффектом из Link

Из-за того, что у компонентов Link всегда рендерится часть Tappable для ripple-эффекта, спозиционированная абсолютно, Link не прячется в Safari вместе с контентом если контент переполнил родительский элемент.

Это, конечно, странное поведение Safari, но и у нас довольно странно в DOM вставлять Ripple компонент, который для Link совсем не нужен.
  • Loading branch information
mendrew authored Jun 27, 2024
1 parent 6b8547d commit b954643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vkui/src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const Link = ({
className={classNames(styles['Link'], hasVisited && styles['Link--has-visited'], className)}
hasHover={false}
activeMode="opacity"
hoverMode="none"
focusVisibleMode="outside"
>
{children}
Expand Down

0 comments on commit b954643

Please sign in to comment.