You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/05/13 00:50:34 UTC
[echarts] 01/01: fix(tooltip): use kebab-case in transition
property.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch fix-tooltip-transform
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit b310a660b68b562acf4eb7cbf1c07492fd651237
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Thu May 13 08:33:17 2021 +0800
fix(tooltip): use kebab-case in transition property.
---
`transition: webkitTransform ease 0.3s;` is not valid, use `transition: -webkit-transform ease 0.3s;` instead.
---
src/component/tooltip/TooltipHTMLContent.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/component/tooltip/TooltipHTMLContent.ts b/src/component/tooltip/TooltipHTMLContent.ts
index ecd432f..7d70c1b 100644
--- a/src/component/tooltip/TooltipHTMLContent.ts
+++ b/src/component/tooltip/TooltipHTMLContent.ts
@@ -100,7 +100,7 @@ function assembleTransition(duration: number, onlyFade?: boolean): string {
if (!onlyFade) {
transitionOption = ` ${duration}s ${transitionCurve}`;
transitionText += env.transformSupported
- ? `,${TRANSFORM_VENDOR}${transitionOption}`
+ ? `,${CSS_TRANSFORM_VENDOR}${transitionOption}`
: `,left${transitionOption},top${transitionOption}`;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org