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

Font is not Roboto #150

Open
ImpulseTheFox opened this issue Jan 1, 2020 · 1 comment
Open

Font is not Roboto #150

ImpulseTheFox opened this issue Jan 1, 2020 · 1 comment
Labels
support Indicates a request for help / clarification

Comments

@ImpulseTheFox
Copy link

ImpulseTheFox commented Jan 1, 2020

Hi, thanks for this awesome library! It works as expected, but the font seems to be some serif-font (I think it's Chromes Default: Times New Roman). Why? Shouldn't it be Roboto by default?
Also, how can you customize the font?

fonts

@dominique-mueller
Copy link
Owner

The library actually does not define any fonts. The font being used within the notifications is whatever you defined as a CSS font-family in the DOM hierarchy above the notification element, e.g. on the <body> element. So the application is responsible for providing and defining font properties.

For instance, in this repository, the demo project (at packages/angular-notifier-demo) sets "Roboto" as a font-family on the <body> element. See https://github.com/dominique-mueller/angular-notifier/blob/develop/projects/angular-notifier-demo/src/styles.scss#L15.

@dominique-mueller dominique-mueller added the support Indicates a request for help / clarification label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Indicates a request for help / clarification
Projects
None yet
Development

No branches or pull requests

2 participants