Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into jerel/example-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 2, 2020
2 parents 8d8dd83 + ee72627 commit c35cc0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ body {
font-family: var(--primary-font-family);
color: var(--color-black);
background-color: var(--color-white);
line-height: 1.2;
}

main {
Expand Down Expand Up @@ -89,6 +90,7 @@ h3,
h4,
h5,
h6 {
margin-top: revert;
margin-bottom: 8px;
font-weight: 600;
color: var(--color-neutrals-800);
Expand Down Expand Up @@ -152,4 +154,3 @@ ul {
li {
margin-bottom: 1rem;
}

2 changes: 1 addition & 1 deletion src/hooks/useStylesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useStylesheet = (src) => {
link.crossOrigin = 'anonymous';
link.onload = () => setLoaded(true);
link.href = src;
document.head.appendChild(link);
document.head.prepend(link);

return () => document.head.removeChild(link);
}, [src]);
Expand Down

0 comments on commit c35cc0f

Please sign in to comment.