question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Radio] Centering issue in Safari

See original GitHub issue

Dot in radio button is not centered in Safari for 13 and 15 inches screens. On iphone (checked on iphone Xs), chrome and firefox the dot is perfectly centered.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Steps to Reproduce 🕹

That is how I style my radio button:

const RadioBtn = withStyles({
    root: {
        color: 'default',
        '&$checked': {
            color: '#604f93',
        },
    },
    checked: {},
})(props => <Radio color="default" {...props} />)

Live example of this issue can be found here: https://www.erudicat.com/heuristic-question-147 or https://www.erudicat.com/monte-carlo-analysis-question-337

Context 🔦

The majority of css rules in my project are scoped to particular components and the fact that I have such issue only in one browser make me assume that the issue is probably with MUI.

Thank you in advance!

Your Environment 🌎

Tech Version
Material-UI v4.8.2
React 16.12.0
Browser Safari v13.0.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:19 (13 by maintainers)

github_iconTop GitHub Comments

9reactions
YuryShkodacommented, Mar 12, 2020

Just tried the fix using scale() and it looks perfect. root: { "& svg:first-child": { transform: "scale(1)" } } I was able to test on 4 real screen resolutions. Huge thanks to everyone!

2reactions
anasufanacommented, Oct 25, 2020

Could I try this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Radio] Centering issue in Safari #19846 - mui/material-ui
Dot in radio button is not centered in Safari for 13 and 15 inches screens. ... The issue is present in the latest...
Read more >
How to align radio buttons on a Iphone safari - Stack Overflow
Horizontally and vertically align radio input with their label. This code working is fine on iPhone on both Safari and Chrome.
Read more >
Line Radio Buttons: Not working on Safari iPad with iOS 13
Hello. It appears you are using an emulator. Everything works fine on an emulator, but if you try and use it on an...
Read more >
Adjust the mono audio, balance, and phone noise ...
You can adjust mono audio, left-right stereo balance, and phone noise cancellation to suit your needs. Go to Settings > Accessibility > Audio/Visual....
Read more >
Toggles - Selection and input - Human Interface Guidelines
A toggle lets people choose between a pair of opposing states, like on and off, using a different appearance to indicate each state....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found