-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Primary button has incorrect enabled state in Safari #4228
Comments
Debugged a little further and this only appears to be an issue for buttons inside the |
I'm seeing a similar issue in Safari with the primary button on our refreshed login page. This only happens in that browser and if I even start to change any styles via developers console it fixes itself. Other ways this seems to self resolve is through any re-render or resizing the screen past a breakpoint (triggers rerender). |
Thanks for that example @IlanaB that helped me debug a bit. I think the issue is stemming from a state change and safari not rendering the correct color value after everything has loaded. I've made a little sandbox to reproduce: Sandbox That said, in the second example I added everything is fine in Safari. The styles are inline which makes things simpler but it leads me to believe that the issue lies somewhere in Polaris. I'll try to do some digging when I have time but if anyone has any ideas I'm all 👂 |
Thanks @runmad I had a feeling that would happen as well since critical is using the same |
Issue summary
The enabled state of the primary button does not have white text on Safari. This works fine in Chrome. I did not test other browsers.
I could not replicate on polaris.shopify.com.
Expected behavior
This is what happens in Chrome:
Disabled:
Enabled:
Actual behavior
Disabled (correct):
Enabled:
Steps to reproduce the problem
Reduced test case
Again, I am not able to reproduce on polaris.shopify.com or in the sandbox.
The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.
Specifications
The text was updated successfully, but these errors were encountered: