aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/Header.astro
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/components/base/Header.astro')
-rw-r--r--apps/website/src/components/base/Header.astro8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/website/src/components/base/Header.astro b/apps/website/src/components/base/Header.astro
index 70dc799..1ab879e 100644
--- a/apps/website/src/components/base/Header.astro
+++ b/apps/website/src/components/base/Header.astro
@@ -25,13 +25,13 @@ const {
} = Astro.props;
const Element = sizes[size] as any; // Unfortunately gotta do this
-const className = (align == 'inherit' ? '' : `text-${align} `)
- + (size == 'xxl' ? ' page-header' : '')
+const className = (align === 'inherit' ? '' : `text-${align} `)
+ + (size === 'xxl' ? ' page-header' : '')
+ (attr.class ? ` ${attr.class}` : '');
---
<Element {...attr} class={className}>
- <slot />
+ <slot/>
</Element>
<style>
@@ -74,4 +74,4 @@ const className = (align == 'inherit' ? '' : `text-${align} `)
font-weight: inherit;
}
}
-</style>
+ </style>