-
Notifications
You must be signed in to change notification settings - Fork 42
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
replacing the icons #67
Comments
@brianteeman Version 5.0.4 will support more CSS variables in order to adjust the icons better. Keep me posted. |
Switching from material icons to my own icon set lets me see various other places where content variables are needed. I will try to list them all here
and finally |
i am guessing that similar changes are also required for the main icon as that is also hardcoded for either material or emoji |
@brianteeman Please try version |
unless I am missing something this doesnt work. With this PR the code generated is the problem is that while material will replace the close with an icon fotnaweseome and others will not as they rely on a class |
@brianteeman The readme file has this example (I should add it to the site as well): const options = {
icon: {
fontFaceSrc: ['https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v4-font-face.min.css'],
fontFamily: '"FontAwesome"',
img: '[optional - URL for an image that will replace the menu icon]',
closeIcon: '[optional - replacement text for the close menu icon]',
resetIcon: '[optional - replacement text for the reset all icon]'
}
};
new Accessibility(options);
|
Yes I saw that but closeIcon/resetIcon does not work with fontawesome. did you try it? |
I see now that it's only working for Emoji mode. Please try version |
that doesnt work either - did you test it yourself? the problem is the same as I already said
|
Please try version |
thanks - will test later today and report back but at a quick glance it does appear to be on the right path |
I'm trying to replace the icons with a local fontface, since we already have material icons loaded anyways.
Am I missing something here, or why is the tool still trying to load the icons from google? const options = {
icon: {
fontFaceSrc: ['https://my-domain.com/_assets/some-random-hash/StyleSheets/main.min.css']
}
}; |
Hi @kvonspiczak |
Unfortunately it is not as simple as replacing the content attribute with the CSS variables currently being used as the built-in css also manipulates the icons eg
accessibility/src/main.ts
Lines 652 to 657 in 6077514
The text was updated successfully, but these errors were encountered: