material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

arrow icons not shown in Safari

Open Bosn opened this issue 8 years ago • 13 comments

Environment

Tech Version
material-ui-pickers 1.0.0-rc.12 / official site demo
material-ui 1.4.2
React 16.4.1
Browser Safari 11.1.2
Platform MacOS 10.13.6 or iOS

Steps to reproduce

  1. Using safari to visit official demo page: https://material-ui-pickers.firebaseapp.com/demo/datepicker
  2. Click picker component to show calendar and mask
  3. Left / right arrow icons are not shown correctly.

Expected behavior

Arrow icons shown

Actual behavior

Arrow icons now shown

Live example

https://material-ui-pickers.firebaseapp.com/demo/datepicker

Screenshot

Bosn avatar Aug 08 '18 01:08 Bosn

I'm experiencing icons not showing also, just large letters.

NickToye avatar Aug 08 '18 12:08 NickToye

@NickToye <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> this fill fix letters for you (not in iOS safari)

dmtrKovalenko avatar Aug 08 '18 12:08 dmtrKovalenko

I'm using the create-react-app and there is no section for me to add this.

NickToye avatar Aug 08 '18 12:08 NickToye

Also worth noting that this was working last week, but now it isn't - so don't know if there was a change made with your stuff, or React itself.

Ok, think I have a rookie error - I put it in the public render of the index.html and it works fine, must have done that previously. Always assumed that when you do a compile it clears that file out.

NickToye avatar Aug 08 '18 12:08 NickToye

@NickToye public/index.html not recreating - build/index.html is recreating so put the font to public folder

dmtrKovalenko avatar Aug 08 '18 13:08 dmtrKovalenko

Seems like the overflow: hidden in the styles for the arrows is causing the problem.

hashwin avatar Aug 08 '18 15:08 hashwin

@hashwin Thx a lot, I fixed this by adding theme overrides:

{
  overrides: {
    MuiIcon: {
      root: {
        overflow: 'visible',
      },
    },
  }
}

Bosn avatar Aug 10 '18 03:08 Bosn

Hi Bosn, would you be willing to show how the theme overide works. I have been trying to figure it out but no luck. I am also trying to make it work in Safari. Thanks.

chetferry avatar Aug 16 '18 02:08 chetferry

@chetferry you can add it to the theme.

const theme = createMuiTheme({
  overrides: {
    MuiIcon: {
      root: {
        overflow: 'visible'
      }
    }
  }
});

<MuiThemeProvider muiTheme={theme}>
  <App />
</MuiThemeProvider>

hashwin avatar Aug 16 '18 06:08 hashwin

Thanks so much! I have it working now because of your help.

chetferry avatar Aug 17 '18 00:08 chetferry

Released in rc.13

dmtrKovalenko avatar Aug 19 '18 12:08 dmtrKovalenko

I have this issue, but it's not only in Safari, I have it with Firefox and Chrome too. Does anyone else have this issue? The arrows are there and functioning just not visible.

Screen Shot 2019-05-14 at 9 48 15 AM

Jwing28 avatar May 14 '19 14:05 Jwing28

Hmm. We are using plain svg there. Don’t you override arrowIcon props?

dmtrKovalenko avatar May 14 '19 15:05 dmtrKovalenko