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

Arbitrary font-family with quotes not working properly #8012

Closed
dcastil opened this issue Apr 1, 2022 · 2 comments · Fixed by #8204
Closed

Arbitrary font-family with quotes not working properly #8012

dcastil opened this issue Apr 1, 2022 · 2 comments · Fixed by #8204
Assignees

Comments

@dcastil
Copy link
Contributor

dcastil commented Apr 1, 2022

What version of Tailwind CSS are you using?

v3.0.23

What build tool (or framework if it abstracts the build tool) are you using?

Tailwind CSS playground

What version of Node.js are you using?

not applicable

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/KDujkzjaXO

Describe your issue

When using arbitrary values for the font-family class, I noticed that their CSS is not generated when I use multiple font-families and at least one of them is quoted. All of these following examples should work, but some of them don't:

  • font-[arbitrary]: ✅
  • font-['arbitrary_with_space']: ✅
  • font-[arbitrary,arbitrary2]: ✅
  • font-[arbitrary,'arbitrary_with_space']: ❌
  • font-['arbitrary_with_space','arbitrary_2']: ❌
@dcastil dcastil changed the title Arbitrary font-family not working properly with quotes Arbitrary font-family with quotes not working properly Apr 1, 2022
@thecrypticace thecrypticace self-assigned this Apr 11, 2022
@thecrypticace
Copy link
Contributor

Hey! We've rewritten our default class candidate extractor and it should allow arbitrary values with mixed quotes. Would you mind giving the insiders build a test and make sure that you're seeing what you expect? npm install tailwindcss@insiders — thanks!

@dcastil
Copy link
Contributor Author

dcastil commented May 5, 2022

Just tried it out and it works! Thanks for the fix! 🙏

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

Successfully merging a pull request may close this issue.

2 participants