From 76d6e8cdda5392b3d8bbb18f1212e5948be2e686 Mon Sep 17 00:00:00 2001
From: shamalainen <sebastian@hamse.fi>
Date: Wed, 3 Feb 2021 10:28:52 +0200
Subject: [PATCH] Update line width and paragraph text top spacing

---
 src/components/heading/heading.scss               | 2 +-
 src/components/paragraph-text/paragraph-text.scss | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/heading/heading.scss b/src/components/heading/heading.scss
index ee948449..44aea37f 100644
--- a/src/components/heading/heading.scss
+++ b/src/components/heading/heading.scss
@@ -78,7 +78,7 @@
 
   &:after {
     background-color: transparent;
-    border-bottom: 3px solid var(--grayscale-dark);
+    border-bottom: 6px solid var(--grayscale-dark);
     content: ' ';
     display: flex;
     height: 2px;
diff --git a/src/components/paragraph-text/paragraph-text.scss b/src/components/paragraph-text/paragraph-text.scss
index c26d1ac7..8d3e459a 100644
--- a/src/components/paragraph-text/paragraph-text.scss
+++ b/src/components/paragraph-text/paragraph-text.scss
@@ -66,4 +66,9 @@
     margin-top: 0;
     padding-top: 0;
   }
+
+  // When hy-paragraph-text is the first child it will not add spacing to top. Will fix heading + text spacing issue.
+  &:first-child {
+    margin-top: 0 !important;
+  }
 }
-- 
GitLab