Skip to content

Commit

Permalink
removing default size from BaseHeading (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jul 19, 2024
1 parent f0a0305 commit c344b6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue/src/components/BaseHeading/BaseHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineComponent({
size: {
type: String as PropType<HeadingLevel>,
required: false,
default: 'h2',
default: '',
validator: (prop: string): boolean => Object.keys(headings).includes(prop)
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/components/BlockHeading/BlockHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<BaseHeading
v-if="data"
:level="data.level"
:size="data.size"
>
{{ data.heading }}
</BaseHeading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ export const BlockStreamfieldData = {
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p><p>Integer imperdiet blandit neque vitae euismod. Nulla aliquet lacus nibh, vel tincidunt urna efficitur non. In et eros vitae ex posuere maximus quis eget urna. Suspendisse fringilla posuere velit sit amet posuere. Morbi malesuada bibendum vehicula. Donec faucibus ut erat ut mattis. Suspendisse ornare, quam at placerat cursus, dolor mi lacinia nunc, eget maximus augue nulla in dolor.</p>\n'
},
BlockInlineImageData.block,
{
blockType: 'HeadingBlock',
heading: 'Heading 2',
level: 'h2'
},
{
blockType: 'HeadingBlock',
heading: 'Heading 3',
level: 'h3'
},
{
blockType: 'RichTextBlock',
value:
Expand Down

0 comments on commit c344b6b

Please sign in to comment.