Skip to content

Commit

Permalink
chore(Tappable): revert feature changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul committed Aug 7, 2023
1 parent 47b5a60 commit a4a992c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions packages/vkui/src/components/Tappable/Tappable.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ https://github.com/VKCOM/VKUI/pull/3641
}
}

.Tappable.Tappable--borderRadiusInherit {
border-radius: inherit;
}

/**
* Animations
*/
Expand Down
7 changes: 0 additions & 7 deletions packages/vkui/src/components/Tappable/Tappable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ export interface TappableProps
focusVisibleMode?: LiteralUnion<FocusVisibleMode, string>;
onEnter?(outputEvent: MouseEvent): void;
onLeave?(outputEvent: MouseEvent): void;
/**
* Задает border-radius элементу
* В режиме `auto` на маленьких экранах `border-radius: 0`, иначе определяется токеном `--vkui--size_border_radius--regular`
*/
borderRadiusMode?: 'auto' | 'inherit';
}

interface Wave {
Expand Down Expand Up @@ -200,7 +195,6 @@ export const Tappable = ({
onLeave,
className,
hovered: hoveredProp,
borderRadiusMode = 'auto',
...props
}: TappableProps) => {
Component = Component || ((props.href ? 'a' : 'div') as React.ElementType);
Expand Down Expand Up @@ -336,7 +330,6 @@ export const Tappable = ({
opacity: styles['Tappable--active-opacity'],
}[activeMode],
focusVisible && styles['Tappable--focus-visible'],
borderRadiusMode === 'inherit' && styles['Tappable--borderRadiusInherit'],
);

const handlers: RootComponentProps = {
Expand Down

0 comments on commit a4a992c

Please sign in to comment.