Skip to content

Commit

Permalink
fix(ripple): fix ripple style vbenjs#211
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jan 25, 2021
1 parent 0ec1a62 commit 2201629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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`,
Expand Down

0 comments on commit 2201629

Please sign in to comment.