aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/heading/heading.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-27 17:38:23 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:25:00 +0200
commit7255d25f6834a208c0ed44636356cc260f6ab6ba (patch)
tree88016a958190f766a3ac0ab4b77f4732e17502e8 /src/components/atoms/heading/heading.module.scss
parentba793e043e4d8515b1a9ea490ee2c5f92b1fd6c2 (diff)
refactor(components): rewrite Heading component
* remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
Diffstat (limited to 'src/components/atoms/heading/heading.module.scss')
-rw-r--r--src/components/atoms/heading/heading.module.scss27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/atoms/heading/heading.module.scss b/src/components/atoms/heading/heading.module.scss
new file mode 100644
index 0000000..a2e339a
--- /dev/null
+++ b/src/components/atoms/heading/heading.module.scss
@@ -0,0 +1,27 @@
+@use "../../../styles/abstracts/placeholders";
+
+.heading {
+ &--1 {
+ @extend %h1;
+ }
+
+ &--2 {
+ @extend %h2;
+ }
+
+ &--3 {
+ @extend %h3;
+ }
+
+ &--4 {
+ @extend %h4;
+ }
+
+ &--5 {
+ @extend %h5;
+ }
+
+ &--6 {
+ @extend %h6;
+ }
+}