-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APPS-2563 Convert Flexible RichText component to vue3 (#465)
* set up flexibleRichText files * feat: update all FlexibleRichText to Vue3 * add comments * chore: lint fixes * feat: updating the styles in Global RichText and adding text direction & language to the richtext mock data * fix: styling for other components using richText * chore: linting * update: tests and styles * chore: linting * fix: style in pullquote that were affected by richText * style: fix font weight on pullQuote * style: fix margin-bottom on pullQuote
- Loading branch information
1 parent
07a5833
commit 368dc13
Showing
13 changed files
with
535 additions
and
386 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
// COMPONENTS | ||
import RichText from '@/lib-components/RichText.vue' | ||
// TYPESCRPT | ||
import type { FlexibleRichText } from '@/types/flexible_types' | ||
const { block } = defineProps({ | ||
block: { | ||
type: Object as PropType<FlexibleRichText>, | ||
default: () => { }, | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="rich-text"> | ||
<h2 | ||
v-if="block.sectionTitle" | ||
class="section-title" | ||
v-html="block.sectionTitle" | ||
/> | ||
|
||
<RichText :rich-text-content="block.richText" /> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.rich-text { | ||
.section-title { | ||
@include step-3; | ||
color: var(--color-primary-blue-03); | ||
margin-bottom: var(--space-xl); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
368dc13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ucla-library-storybook-vue3x.netlify.app as production
🚀 Deployed on https://65dfdf4a40f26c999ca20eac--ucla-library-storybook-vue3x.netlify.app
368dc13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://deploy-preview--ucla-library-storybook-vue3x.netlify.app