From 22016291e4df206dbca351d00ae033c952276ebe Mon Sep 17 00:00:00 2001 From: vben Date: Tue, 26 Jan 2021 00:02:51 +0800 Subject: [PATCH] fix(ripple): fix ripple style #211 --- src/directives/ripple/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/directives/ripple/index.ts b/src/directives/ripple/index.ts index c8d614b7..c961dc9d 100644 --- a/src/directives/ripple/index.ts +++ b/src/directives/ripple/index.ts @@ -72,9 +72,9 @@ function rippler({ const rippleContainer = document.createElement('div'); // Styles for ripple + ripple.className = 'ripple'; Object.assign(ripple.style ?? {}, { - className: 'ripple', marginTop: '0px', marginLeft: '0px', width: '1px', @@ -88,8 +88,8 @@ function rippler({ }); // Styles for rippleContainer + rippleContainer.className = 'ripple-container'; Object.assign(rippleContainer.style ?? {}, { - className: 'ripple-container', position: 'absolute', left: `${0 - border}px`, top: `${0 - border}px`,