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

[TouchRipple] Ripple effect on Firefox #3850

Closed
dcardin opened this issue Mar 31, 2016 · 22 comments
Closed

[TouchRipple] Ripple effect on Firefox #3850

dcardin opened this issue Mar 31, 2016 · 22 comments
Labels
bug 🐛 Something doesn't work

Comments

@dcardin
Copy link

dcardin commented Mar 31, 2016

I am using Firefox 45 on Linux, and the demo app at http://www.material-ui.com/#/customization/themes (version 0.14.4) shows that the ripple effect works well for everything but the buttons.

That includes the Tab headers, which I suspect are buttons as well.

The problem is present with alphas for 0.15 as well

@mbrookes
Copy link
Member

Confirmed no ripple on buttons in Firefox 45 on OS X.

@mbrookes mbrookes added the bug 🐛 Something doesn't work label Mar 31, 2016
@nathanmarks nathanmarks added this to the 0.15.0 Release milestone Apr 1, 2016
@nathanmarks
Copy link
Member

@mbrookes crazy! we should get this fixed for the release...

@tintin1343
Copy link
Contributor

I tried taking a look at this..apparently the TouchRipple/ CircleRipple component is hidden. I gave it a zIndex of 10000 to see if I can see anything. I was not able to. will have to dig deeper into it.

@tintin1343 tintin1343 changed the title Ripple effect on Firefox [TouchRipple] Ripple effect on Firefox Apr 7, 2016
@nathanmarks
Copy link
Member

@tintin1343 barking up the wrong tree, this is event/button/spec related. I've looked into it -- i'll handle from here if you want?

@newoga newoga modified the milestones: 0.16.0 Release, 0.15.0 Release Apr 9, 2016
@newoga
Copy link
Contributor

newoga commented Apr 9, 2016

Short story: we decided to move this to 0.16.0 release in an effort to get 0.15.0 out the door sooner. This is not a regression introduced by the work on 0.15.0 (it's broken in older versions). This issue is only present in Firefox because Mozilla follows the spec for <button /> more strictly than other browsers. Fixing this properly while maintaining good semantic DOM will require some rearchitecture of t button and underlying button components.

@l0gicgate
Copy link

Lest we forget @newoga that you guys put block elements inside inline elements everywhere in the framework. This is why there are so many cross compatibility issues. Using properly styled inline elements would solve a lot of those problems. May one ask who made those decisions? And what is the purpose of using a button tag instead of a div if you're going to break DOM semantics in the first place?

@newoga
Copy link
Contributor

newoga commented Apr 12, 2016

May one ask who made those decisions?

@l0gicgate Absolutely, you may! You could also look through the extensive git history yourself, or, even better, find more productive ways to help contribute to this project and make it better like opening up a PR in areas you don't like. 😄

@l0gicgate
Copy link

@newoga duly noted.

@cgestes
Copy link
Contributor

cgestes commented Apr 12, 2016

@l0gicgate I dont think it was a choice, it just happened. Maintainers are always willing to clean the codebase and to improve it. Switching to flex at the same time would also be welcome.

@tintin1343 tintin1343 added the duplicate This issue or pull request already exists label Apr 14, 2016
@mbrookes mbrookes removed the duplicate This issue or pull request already exists label Apr 14, 2016
@nathanmarks
Copy link
Member

nathanmarks commented Apr 20, 2016

@l0gicgate Cleaning up incorrect use of elements, following semantics, and switching to flexbox are some changes that we're starting to implement and will be implementing more of in coming releases -- it bugs us just as much as you, trust me 😄

@piotr-dobrogost
Copy link

@newoga

This issue is only present in Firefox because Mozilla follows the spec for more strictly than other browsers.

Could you please elaborate? Knowing the reason for this bug would help come up with a fix or at least some workaround.

@nathanmarks
Copy link
Member

This is resolved in next.

@binarykitchen
Copy link

been investigating this and can confirm that the touch ripple effect styles on enhanced buttons can cause list items to disappear.

when i remove position: absolute at https://github.com/callemall/material-ui/blob/master/src/internal/TouchRipple.js#L202 then all works fine on firefox (ofc the animation is behaving differently then)

@binarykitchen
Copy link

@nathanmarks the fact that this ticket is closed makes me wonder in which commit for next this has been resolved?

@binarykitchen
Copy link

i think adding two new css properties to the touch ripple might do the trick

        "backface-visibility": 'hidden', <------ NEW
        "perspective": 1000, <------ NEW

they enable hardware acceleration and then the flicker on firefox is gone

@binarykitchen
Copy link

on the other hand, these two new css props will depend on gpu which isn't so nice. turns out that will-change: "transform" turns out to be a better solution ...

@mr-e-
Copy link

mr-e- commented Jan 17, 2017

Was this fixed? I am running 0.16.7 and I am still not seeing the ripple in Firefox.

@mbrookes
Copy link
Member

@mr-e- This is fixed in the next branch where we are working on a drains-up rewrite. It is still some way from release.

@Galti
Copy link

Galti commented Apr 20, 2017

I'm using 0.17.4 and there is nor ripple.

@AkyunaAkish
Copy link

Any updates on this? Still seeing the issue on 0.18.7

@dcardin
Copy link
Author

dcardin commented Aug 17, 2017

Indeed, 0.19 with FF 55.0.1 is still not working.

@cobisimo
Copy link

Anyone still having this issue, should reset dom.w3c_touch_events.enabled and dom.w3c_touch_events.expose values in about:config to default values. It looks like it was set to wrong default in past FF versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests