Material-ui: [CircularProgress] Only works with Chrome

Created on 8 Nov 2016  路  13Comments  路  Source: mui-org/material-ui

Circular progress doesn't work on safari, it looks full.

Open next docs in safari.
capture d ecran 2016-11-08 a 23 17 39

Versions

  • Material-UI: Next branch
  • Browser: Safari 9.1.3, 10.1; Firefox 45.8.0
bug 馃悰 CircularProgress

Most helpful comment

@kazazor I'm working on upgrading JSS. That could be our first use case for the dynamic CSS feature of JSS. I will try to support it.

All 13 comments

Seems that calc() in stroke-dasharray doesn't work in Safari and Firefox:
CodePen example.

Should be able to fix it using jss fallbacks i think. But not sure how to make it dynamic with the current style prop? Or should i want for you to update jss to the latest version (along with jss-theme-reactor?) to introduce the dynamic changes?

Also, i didnt find any documentation regarding willChange that you're using. What is it for?

@oliviertassinari Looks like another use-case for jss dynamic styles.

This is also happening on FF (could be also on Edge & IE but I don't have them to test on..)

Same story on IE11 and Edge 14. Only working with Chrome then 馃檲 .

My 2 cents on the issue, it probably should be prioritized very high cause it's better to have fewer components to be used than having some which do not work on all browsers except 1 :)

I'll try to see if I have some time to give it a try but probably gonna be hard to find some

but probably gonna be hard to find some

Same here.

I have implemented a fallback function in JS for CSS calc, which works fine.
But :(
That fallback function needs the size of the component, which will come with JSS dynamic styles if we update the JSS and ThemeReactor to the latest version. In that case, it will grab it from components "props" and use it.

The bug in Firefox has been reported a year ago and still not fixed, so I think that we should use some kind of JS fallback until it is fixed on the browsers side.

Here are my changes (the "size" property of the component is hardcoded for now):
https://github.com/arsen/material-ui/commit/a8a3527640ffb4ed48f2f3165a951aa99bcdf467

That fallback function needs the size of the component, which will come with JSS dynamic styles if we update the JSS and ThemeReactor to the latest version. In that case, it will grab it from components "props" and use it.

@arsen / @oliviertassinari - what are the consequences of upgrading those to the latest version? Is that a good path to give with?

@kazazor I'm working on upgrading JSS. That could be our first use case for the dynamic CSS feature of JSS. I will try to support it.

Should be possible to move forward with this once https://github.com/callemall/material-ui/issues/7633 is done (Linking for reference and tracking)
Would it be correct to access the created sheet from withStyles in the component so that it will be possible to do update on it?

Got this issue on Safari 11.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

FranBran picture FranBran  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments