Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit 03eac2e

Browse files
Fix bug where link was not working when target page imported CSS (?!?)
- Links on index page were mysteriously not working - Tracked problem to the fact that target page was importing CSS - Solution: move CSS to global import (I think this is required as of 9.3 anyway) - Ref: vercel/next.js#5598 - Note: may cause problems linking to sphinx files (?) which still import CSS, but appears to work fine in docs??? what?? Makes very little sense why this fixes it, and still a bit inconsistent. Luckily the problem seems to be related only to the dev server + HMR (??) Check how the built version works in CI...
1 parent 1323c08 commit 03eac2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

design/Layout/BaseLayout/BaseLayout.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import "@csstools/normalize.css";
2-
import "../../css/base.css";
3-
41
import defaultTheme from "../../themes/defaultTheme";
52

63
import { ThemeProvider } from "theme-ui";

docs/pages/_app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import "@csstools/normalize.css";
2+
import "@splitgraph/design/css/base.css";
3+
14
import { DefaultSeo } from "next-seo";
25

36
const SEO_BASE_URL = process.env.SEO_CANONICAL_BASE_URL;

0 commit comments

Comments
 (0)