summaryrefslogtreecommitdiff
path: root/src/components/Global/PageSection.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Global/PageSection.vue')
-rw-r--r--src/components/Global/PageSection.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/Global/PageSection.vue b/src/components/Global/PageSection.vue
index 03040b29..dcd85e61 100644
--- a/src/components/Global/PageSection.vue
+++ b/src/components/Global/PageSection.vue
@@ -1,8 +1,8 @@
<template>
- <section class="page-section">
- <h2>{{ sectionTitle }}</h2>
+ <div class="page-section">
+ <h2 v-if="sectionTitle">{{ sectionTitle }}</h2>
<slot />
- </section>
+ </div>
</template>
<script>
@@ -11,7 +11,7 @@ export default {
props: {
sectionTitle: {
type: String,
- required: true
+ default: ''
}
}
};
@@ -21,6 +21,7 @@ export default {
.page-section {
margin-bottom: $spacer * 2;
}
+
h2 {
@include font-size($h4-font-size);
margin-bottom: $spacer;