Tokens for Ripple

This commit is contained in:
Cagatay Civici 2024-05-13 14:17:01 +03:00
parent 2bbc5cc232
commit 51df79c306
13 changed files with 105 additions and 147 deletions

View file

@ -9,6 +9,8 @@ const Ripple = BaseRipple.extend('ripple', {
this.bindEvents(this.$host);
this.$host.setAttribute('data-pd-ripple', true);
this.$host.style['overflow'] = 'hidden';
this.$host.style['position'] = 'relative';
} else {
this.remove(this.$host);
this.$host.removeAttribute('data-pd-ripple');
@ -46,6 +48,9 @@ const Ripple = BaseRipple.extend('ripple', {
let ink = this.getInk(el);
if (ink) {
this.$host.style['overflow'] = '';
this.$host.style['position'] = '';
this.unbindEvents(el);
ink.removeEventListener('animationend', this.onAnimationEnd);
ink.remove();