-
Notifications
You must be signed in to change notification settings - Fork 7
Change loaded font behavior #14
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
Conversation
I backtracked a little bit...
|
Hi @fcisio , thanks for your contribution. I have reviewed the PR and I have some comments. I had made some modifications and pushed the changes, hope you don't mind. This PR has provided a good idea and a solid foundation for the improvements that I've made. I like the idea of replacing Helmet. However, I've had to refactor this to a custom hook since the component didn't return anything anymore and had to create a separate wrapper component that calls the hook. This structure makes more sense for this case. I've refactored the Check out the changes and let me know if they work for you. If everything is okay, I'll plan the release early next week after I give it one more look. |
I love the refactoring you did, looks awesome! I pushed a new commit, simply adding a "wf-all--loaded" class to allow for simple CSS selectors when we don't need specificity (while we're at it). Thanks! |
I don't think the final class name for all loaded fonts is needed since the individual class names can be concatenated in a CSS selector for the same effect. If I see a valid use-case, I'll consider implementing it in a separate PR and version release. At this point, I'm not sure if there is any. If you revert that recent part of the PR today, I'll finalize it and merge it tomorrow. I appreciate the contribution. Thank you! |
This reverts commit 32245a0.
Hey @codeAdrian , Thanks |
Hi, I took liberty with two main things:
attribute
instead ofclassname
New CSS use:
Also, since it's already a breaking change, I felt that we might not need an option to choose the scope from
body
orhtml