Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is automatically adding span tags and breaking design elements #18

Open
myplaneticket opened this issue Feb 12, 2018 · 7 comments
Open

Comments

@myplaneticket
Copy link

myplaneticket commented Feb 12, 2018

The plugin weirdly started to auto add span tags and started breaking DOM elements.

<span class="legitRipple-ripple" style="left: 59.2308%; top: 80%; transform: translate3d(-50%, -50%, 0px) translate3d(-9.09554%, -5.11624%, 0px); width: 101.487%; opacity: 0;"></span>

@matthias-vogt
Copy link
Owner

I mean the plugin has to add elements somehow to get the ripples to show, right?
Or do you see the span elements outside of their parent elements with which you instantiated the plugin?

@myplaneticket
Copy link
Author

Before click event:

<a href="#" title="Package Info" data-filter-tags="package info" aria-expanded="true" class="legitRipple">
                                <i class="fal fa-tag"></i>
                                <span class="nav-link-text" data-i18n="nav.info_package_info">
                                    Package Info
                                </span>
                            <b class="collapse-sign"><em class="fal fa-angle-up"></em></b></a>

After click event:

<a href="#" title="Package Info" data-filter-tags="package info" aria-expanded="true" class="legitRipple">
                                <i class="fal fa-tag"></i>
                                <span class="nav-link-text" data-i18n="nav.info_package_info">
                                    Package Info
                                </span>
                            <b class="collapse-sign"><em class="fal fa-angle-up"></em></b><span class="legitRipple-ripple" style="left: 56.5385%; top: 46.6667%; transform: translate3d(-50%, -50%, 0px) translate3d(-6.44268%, 0.568471%, 0px); width: 101.487%; opacity: 0;"></span><span class="legitRipple-ripple" style="left: 26.5385%; top: 45.7627%; transform: translate3d(-50%, -50%, 0px) translate3d(22.8798%, 0.937699%, 0px); width: 102.542%; opacity: 0;"></span><span class="legitRipple-ripple" style="left: 14.2308%; top: 37.2881%; transform: translate3d(-50%, -50%, 0px) translate3d(34.8824%, 2.8131%, 0px); width: 102.542%; opacity: 0;"></span></a>

The funny part is, I remember as of 2 weeks ago when it was working, it was never adding extra span tags as a wrapper. It was using ::before and ::after as the animation.

@myplaneticket
Copy link
Author

Could this be in relation to the new jquery update?

@matthias-vogt
Copy link
Owner

matthias-vogt commented Feb 13, 2018 via email

@matthias-vogt
Copy link
Owner

I hope this helped, please tell me if you have any more questions. :)

@myplaneticket
Copy link
Author

Hi,

I did not see your post till today. I can confirm the bug is still there, the span tag is not getting removed.

@myplaneticket
Copy link
Author

Also, its added 2 span tags instead of just one:

image

@matthias-vogt matthias-vogt reopened this Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants