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

Fix font loading in storybook #11529

Merged
merged 2 commits into from Nov 2, 2022
Merged

Fix font loading in storybook #11529

merged 2 commits into from Nov 2, 2022

Conversation

b12f
Copy link
Contributor

@b12f b12f commented Oct 31, 2022

Both Lato and the icon font were not loading correctly since the CSS expects them to be available under a certain URL. This URL is available in the core app, but not storybook. This commit makes sure the assets load correctly in Storybook, giving us pretty icons and the right font.

Both Lato and the icon font were not loading correctly since the CSS
expects them to be available under a certain URL. This URL is available
in the core app, but not storybook. This commit makes sure the assets
load correctly in Storybook, giving us pretty icons and the right font.
@b12f b12f requested review from psatyal and a team October 31, 2022 17:04
@b12f b12f marked this pull request as ready for review October 31, 2022 17:04
@b12f b12f requested a review from marcalcobe October 31, 2022 17:04
@psatyal
Copy link
Contributor

psatyal commented Oct 31, 2022

Looking forward to reviewing this! There seems to be a problem with the pullpreview however; it says "succesfully deployed" but there's no link, and the action had an error associated with it.

I've removed and added the label again, let's see...

Update, 21h39: Again, error + "successfully deployed" + no link to deployment :/

Screenshot 2022-10-31 at 21 38 22

@Kharonus
Copy link
Member

Kharonus commented Nov 1, 2022

I checked that branch out locally, and there it works:
image

How can we fix the pullpreview?

@b12f
Copy link
Contributor Author

b12f commented Nov 2, 2022

It's this issue: storybookjs/storybook#18686

I'll see if we can work around it.

Storybook assets cannot currently be loaded by merging directories,
so this fix makes sure files are loaded individually.

storybookjs/storybook#18686
Copy link
Member

@Kharonus Kharonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@b12f b12f merged commit 24e1e12 into dev Nov 2, 2022
@b12f b12f deleted the fix/storybook-fonts branch November 2, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants