Skip to content

Commit

Permalink
Importer all preflight styles i eget layer (#2557)
Browse files Browse the repository at this point in the history
For å forhindre issues med spesifisitet, spesielt for globale styles fra
tailwind & reset.
  • Loading branch information
LudvigHz authored Feb 4, 2025
1 parent eecf284 commit 27fb01a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

<link rel="preload" href="https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2" as="font" type="font/woff2" crossorigin/>

<style>
@layer po-base;
</style>

<slot not-environment="prod">
<script src="%VITE_HODE_URL_V2%/dev/react19/dist/bundle.js"></script>
<link rel="stylesheet" href="%VITE_HODE_URL_V2%/dev/react19/dist/index.css" />
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "reset" layer(po-base);
@import "tailwindcss/base";
@import "tailwindcss/base" layer(po-base);
@import "@navikt/ds-css";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
Expand Down

0 comments on commit 27fb01a

Please sign in to comment.