Skip to content

Commit

Permalink
fix: back-top animation error (#38770)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Nov 21, 2022
1 parent 153f232 commit e92cb1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/float-button/style/index.tsx
Expand Up @@ -2,6 +2,7 @@ import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../theme';
import { initFadeMotion } from '../../style/motion/fade';
import { resetComponent } from '../../style';

/** Component only token. Which will handle additional calculation of alias token */
Expand Down Expand Up @@ -303,5 +304,9 @@ export default genComponentStyleHook<'FloatButton'>('FloatButton', (token) => {
floatButtonInsetBlockEnd: marginXXL,
floatButtonInsetInlineEnd: marginLG,
});
return [floatButtonGroupStyle(floatButtonToken), sharedFloatButtonStyle(floatButtonToken)];
return [
floatButtonGroupStyle(floatButtonToken),
sharedFloatButtonStyle(floatButtonToken),
initFadeMotion(token),
];
});

0 comments on commit e92cb1a

Please sign in to comment.