Closed remy closed 2 months ago
I'll also add that … I don't know why, but when I add this code to my _app.tsx
and I include the OakGlobalStyles
in the Head
element, none of the styles apply from the reset (and probably the other global styles). Once I move it out of the Head
it works - seen here: https://github.com/oaknational/oak-openapi/blob/feat/landing/src/pages/_app.tsx
🙇🏻 thanks for catching the missing (and incorrectly named) import.
I don't think it was all that clear that the example used the App router and not Pages (because of course there are multiple ways to structure stuff in Next) which is why I think it doesn't work in a Head
for you. I've added a note to make it clearer.
And that's why you always leave a note.
The readme has this code sample:
But
OakGlobalStyles
isn't imported.(I should do a PR for this, but it's end of day on Friday…sorry!)