Skip to content
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

Icon on ios/Safari not working #24

Closed
woodyc79 opened this issue Sep 23, 2021 · 4 comments
Closed

Icon on ios/Safari not working #24

woodyc79 opened this issue Sep 23, 2021 · 4 comments

Comments

@woodyc79
Copy link

Hello! On the iPad i always get a fallback to the Emoji with a message "Material Icons font was not loaded". I also tried hosting the font on my own.. but it does not work.

The CSS gets injected in the head, but I think the javascript query about the font does not work there

@ranbuch
Copy link
Owner

ranbuch commented Oct 4, 2021

Hi @woodyc79 , sorry for the late response.

Can you provide a link? Also, maybe try to load the Material Icons font before initiating the accessibility script?

@ereztaiar
Copy link

This happened to me on chrome 94 on the production build
adding

"icon": {
     "fontFaceSrc": [
                    "https://fonts.googleapis.com/icon?family=Material+Icons"
                ],
                "fontFamily": "Material Icons",
                "fontClass": "material-icons",
                "useEmojis": false
}

to the options resolved my issue

@infograf768
Copy link
Contributor

Simplest way to solve the issue in the js is correcting the error:

It should be fontFamily:"Material+Icons", and not fontFamily:"Material Icons",

@woodyc79
Copy link
Author

woodyc79 commented Dec 16, 2021

Sorry I lost this out of view ;-)
I wrote a webpack configuration that copies the needed files from the node directory into my project and also replaces some of the source code - so its possible to have the accessibility icon at my own sidemenu and also returns always true in "isFontLoaded" ;-)

Thank you for your valuable tips!

ranbuch added a commit that referenced this issue Dec 19, 2021
Issue #24 Correct display in Safari
@ranbuch ranbuch closed this as completed Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants