Skip to content

Commit

Permalink
fix: css modules classes (#5737)
Browse files Browse the repository at this point in the history
Фиксим классы
  • Loading branch information
SevereCloud authored Sep 4, 2023
1 parent 1e6d1c4 commit 11c4f0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/vkui/src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import styles from './Checkbox.module.css';
const sizeYClassNames = {
none: styles['Checkbox--sizeY-none'],
[SizeType.COMPACT]: styles['Checkbox--sizeY-compact'],
[SizeType.REGULAR]: styles['Checkbox--sizeY-regular'],
};

export interface CheckboxProps
Expand Down Expand Up @@ -114,8 +113,7 @@ export const Checkbox = ({
Component="label"
className={classNames(
styles['Checkbox'],
platform === Platform.VKCOM && styles['Checkbox--vkcom'],
sizeYClassNames[sizeY],
sizeY !== SizeType.REGULAR && sizeYClassNames[sizeY],
!(hasReactNode(children) || hasReactNode(description)) && styles['Checkbox--simple'],
className,
)}
Expand Down
8 changes: 4 additions & 4 deletions packages/vkui/src/components/Root/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ export const Root = ({
const onAnimationEnd = (e: React.AnimationEvent) => {
if (
[
styles['vkui-root-android-animation-hide-back'],
styles['vkui-root-android-animation-show-forward'],
styles['vkui-root-ios-animation-hide-back'],
styles['vkui-root-ios-animation-show-forward'],
styles['root-android-animation-hide-back'],
styles['root-android-animation-show-forward'],
styles['root-ios-animation-hide-back'],
styles['root-ios-animation-show-forward'],
].includes(e.animationName)
) {
finishTransition();
Expand Down

0 comments on commit 11c4f0f

Please sign in to comment.