question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import a Google Font Challenge

See original GitHub issue

Describe your problem and - if possible - how to reproduce it

Test on “Import a Google Font” Challenge (CSS) fails when declaring a fallback font.

This code fails the test with the output “Use an h2 CSS selector to change the font.”:

h2 {
    font-family: Lobster, monospace;
  }

This code passes all tests:

h2 {
    font-family: Lobster;
  }

Add a Link to the page with the problem

https://bit.ly/2leZLlU

Tell us about your browser and operating system

  • Browser Name: Firefox Quantum
  • Browser Version: 60.0.2 (64-bit)
  • Operating System: Ubuntu Mate 18.04

If possible, add a screenshot here

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbstockercommented, Jun 19, 2018

There is some discussion in the challenge about setting a GENERIC_NAME font as a fallback, so it seems inappropriate for the test to return a fail if one declares a generic fallback font in the editor. It’s probably fine either way. But it could confuse newcomers to demonstrate using a fallback font, and then failing them for doing so. Users may wrongly assume there is a problem with their syntax.

0reactions
utkarsh48commented, Jun 3, 2020

Try typing this as it is… h2 { font-family: Lobster; } it worked for me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

freeCodeCamp Challenge Guide: Import a Google Font
The below example shows one of the ways in which you can import and use a Google Font. The example uses a link...
Read more >
freeCodeCamp/import-a-google-font.md at main - GitHub
To import a Google Font, you can copy the font's URL from the Google Fonts library and then paste it in your HTML....
Read more >
How to Use Google Fonts and Custom Fonts in Jotform
Getting Your Google Fonts Import Code · Click the icon on the top-right corner of the page to open the Selected family panel....
Read more >
Early Access - Google Fonts
... of Hebrew fonts available for web design and especially to challenge the ... @import url(http://fonts.googleapis.com/earlyaccess/amstelvaralpha.css); ...
Read more >
How to import Google Fonts in HTML ? - GeeksforGeeks
To use a custom font, we need to import the font family from the web font service, Google Fonts, in this case. Method-1:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found