fix(ripple): fix ripple style #211

This commit is contained in:
vben 2021-01-26 00:02:51 +08:00
parent 0ec1a62e59
commit 22016291e4

View File

@ -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`,