Material-ui: Radio Button Dot Misaligned when Checked in IE11

Created on 29 May 2019  路  4Comments  路  Source: mui-org/material-ui

  • [x ] This is not a v0.x issue.
  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 馃

When you click on a radio button in any scenario (in a RadioGroup or standalone), the dot appears in the stroked circle (as per v3.9.3).
material-ui-v3_9_0-radio-button-expected-ie11

Current Behavior 馃槸

When you click on a radio button in any scenario (in a RadioGroup or standalone), the dot is misaligned and appears outside the stroked circle (as per v4.0.1).
material-ui-v4_0_1-radio-button-issue-ie11

Steps to Reproduce 馃暪

Visit the Radio Buttons page on the Component Demos and click on a radio button in any of the examples.

Context 馃敠

Affects all of our customers using IE11 when filling out our forms.

Your Environment 馃寧

| Tech | Version |
|--------------|---------|
| Material-UI | v4.0.1 |
| React | 16.8.6 |
| Browser | IE11 |

bug 馃悰 Radio good first issue

All 4 comments

@rupert-ong Thanks for reporting the problem. What do you think of this diff?

diff --git a/packages/material-ui/src/Radio/RadioButtonIcon.js b/packages/material-ui/src/Radio/RadioButtonIcon.js
index aeb0b8399..46646c861 100644
--- a/packages/material-ui/src/Radio/RadioButtonIcon.js
+++ b/packages/material-ui/src/Radio/RadioButtonIcon.js
@@ -18,6 +18,7 @@ export const styles = theme => ({
     },
   },
   layer: {
+    left: 0,
     position: 'absolute',
     transform: 'scale(0)',
     transition: theme.transitions.create('transform', {

Do you want to submit a pull request? :)

@rupert-ong Thanks for already fixing this. I just noticed this same issue this morning.

I know this will be in a release very soon, but for anyone that runs into this before then needing a workaround, the following overrides in the theme replicate the fix:

   overrides: {
      PrivateRadioButtonIcon: {
         layer: {
            left: 0
         }
      }
   }

The suggested override doesn't even compile, and nothing similar to it works.

@StephenMcConnel The issue was fixed in May 2019. If you're still experiencing this issue with the current release of Material-UI, please open a new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

activatedgeek picture activatedgeek  路  3Comments

FranBran picture FranBran  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

newoga picture newoga  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments