Skip to content

Commit

Permalink
fix: change load order of Pattern Lab's CSS to prevent specificity is…
Browse files Browse the repository at this point in the history
…sues relating to code / syntax highlighting styles PL ships with
  • Loading branch information
bolt-bot committed Jul 4, 2018
1 parent cf591b3 commit 52c6ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/pattern-lab/src/_meta/_00-head.twig
Expand Up @@ -42,11 +42,11 @@
<!-- Default OG Tag examples (related to Bolt Share Component) -->
{% include "@bolt-components-share/src/_share-meta-example.twig" %}

<link rel="stylesheet" href="/pattern-lab/styleguide/css/pattern-lab.css">
<link rel="stylesheet" href="{{ assets["pl.css"] }}">
<link rel="stylesheet" href="{{ assets["bolt-global.css"] }}" media="all" />

<!-- lazyload extra PL css -->
<link rel="preload" href="{{ assets["pl.css"] }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="/pattern-lab/styleguide/css/pattern-lab.css" as="style" onload="this.onload=null;this.rel='stylesheet'">

<noscript>
<link rel="stylesheet" href="{{ assets["pl.css"] }}">
Expand Down

0 comments on commit 52c6ffb

Please sign in to comment.