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
Opt-out font family not taken into account #18890
Comments
Checking the source of |
Hi, |
Keep in mind that the opt out is in an iFrame and therefore doesn't have any access to webfonts or any other content of the parent page. So unless the uses has the font installed or you use https://plugins.matomo.org/CustomOptOut to add more CSS (with the webfont) to the Matomo page, then it is expected that it won't work. But at this point you might want to instead use https://developer.matomo.org/guides/tracking-javascript-guide#optional-creating-a-custom-opt-out-form to make an opt out form on your website itself instead of an iFrame, which has the advantage of being styled just like any other content on your site. |
@Alice-Pa I'll close this issue for now as everything is working as expected on our side. Feel free to continue commenting though. We're starting the work on issue #17452 very soon. This will be a different way of providing the opt out where it will then be possible (or even the default) that your site's font will be used. |
Hello,
I have tried to specify a font family in the opt-out iFrame but it is not taken into account.
In the code below, I tried to use "apple-system", which is one of the fonts used into Matomo, with several variations (dash, simple quote, double quote, etc.) but no luck.
Here is the code I generated:
<iframe style="border: 0; height: 200px; width: 600px;" src="https://matomo.cnrs.fr/index.php?module=CoreAdminHome&action=optOut&language=fr&backgroundColor=f2f6ff&fontColor=2e2f32&fontSize=14px&fontFamily=apple-system" ></iframe>
And the result I get:
Thanks,
Alice
The text was updated successfully, but these errors were encountered: