From 869fc5bc27e68d108ce084bdef7a2ea6ca0e587b Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Tue, 2 Jun 2020 14:33:42 -0700 Subject: [PATCH 1/2] fix: prepending SDK stylesheet --- src/hooks/useStylesheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useStylesheet.js b/src/hooks/useStylesheet.js index 6c6323aca..db6dd75f8 100644 --- a/src/hooks/useStylesheet.js +++ b/src/hooks/useStylesheet.js @@ -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]); From e96c34860ce3e54bfe61473e66340785a6a2885a Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Tue, 2 Jun 2020 14:34:04 -0700 Subject: [PATCH 2/2] chore: setting a few styles to ensure consistency --- src/components/styles.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/styles.scss b/src/components/styles.scss index cc82211b2..5c561d391 100644 --- a/src/components/styles.scss +++ b/src/components/styles.scss @@ -50,6 +50,7 @@ body { font-family: var(--primary-font-family); color: var(--color-black); background-color: var(--color-white); + line-height: 1.2; } main { @@ -78,6 +79,7 @@ h3, h4, h5, h6 { + margin-top: revert; margin-bottom: 8px; font-weight: 600; color: var(--color-neutrals-800); @@ -140,4 +142,4 @@ ul { li { margin-bottom: 1rem; -} \ No newline at end of file +}