From 9903cb2b3714f8289e918ef2aea7efd8816aa470 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 29 Nov 2022 18:48:49 -0800 Subject: [PATCH] enable tada animation for reduced motion (as it has a reduced motion version) --- package.json | 2 +- packages/client/src/components/mfm.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 48ea31199..2debccd43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.18-rc.4", + "version": "12.119.0-calc.18-rc.5", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts index fc4881255..103c78bf6 100644 --- a/packages/client/src/components/mfm.ts +++ b/packages/client/src/components/mfm.ts @@ -94,7 +94,7 @@ export default defineComponent({ switch (token.props.name) { case 'tada': { const speed = validTime(token.props.args.speed) || '1s'; - style = 'font-size: 150%;' + (this.$store.state.animatedMfm && !reducedMotion() ? `animation: tada ${speed} linear infinite both;` : ''); + style = 'font-size: 150%;' + (this.$store.state.animatedMfm ? `animation: tada ${speed} linear infinite both;` : ''); break; } case 'jelly': {