IE 11 issue: *Material-UI: unsupported `` color. We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().*

See original GitHub issue
  • [ x] The issue is present in the latest release.
  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Debugging the Material UI code on my IE 11 (from Virtual Machine), I got that inside the function hexToRgb, the code let colors = color.match(re); return null:

The following screenshot has the locals variables:

VirtualBox_MSEdge - Win10_23_10_2019_11_01_20

Expected Behavior πŸ€”

The color.match should return an array with the matches

Your Environment 🌎

Internet Explorer 11

Tech Version
Material-UI v4.5.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
larsenworkcommented, Feb 24, 2020

@oliviertassinari not sure if exactly the same issue but in a typescript project I ran into having a theme like

const theme = createMuiTheme({
  palette: {
    background: {
      default: "white"
    }
  }
});

Steps to reproduce:

  1. Have theme.palette.background.default = "white"
  2. Don’t get any type warnings/errors and the app seems to work fine
  3. Load a snackbar and get thrown an error Material-UI: unsupported 'white' color.

Try out sandbox here: https://codesandbox.io/s/material-ui-unsupported-color-t6iof

1reaction
oliviertassinaricommented, Oct 24, 2019

πŸŽ‰ thanks for sharing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE 11 issue: *Material-UI: unsupported `` color. We support the ...
IE 11 issue : *Material-UI: unsupported `` color. We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().* #18005.
Read more >
jss how to change opacity for a color - Stack Overflow
I would like to know if exist a function to add opacity based on color theme.colors.red . example smt like: backgroundColor: color(theme.colors.
Read more >
https://unpkg.com/material-ui@1.0.0-beta.43/styles...
@param {string} color - Hex color, i.e. #nnn or #nnnnnn * @returns ... 'We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(),...
Read more >
youtube-danmaku - Source code - Greasy Fork
Note: Does not support rgb % values. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(),...
Read more >
Design Patterns with React Easy State | by Bertalan Miklos
React Easy State is a transparent reactive state management library with two functions and two accompanying rules. Always wrap your components with view()...
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