DigitalConsumer.FixMyGlass/src/digital-components/text-block/text-block.vue
Bryan Mauger 389b11ac2d CSR-1420 fix misalignment of disclaimer copy
Update code for text-block to not use flex. Use text-align accordingly.
2023-05-24 11:00:00 -04:00

41 lines
1,003 B
Vue

<template>
<div
class="text-block w-100 mt-2"
:class="[justifyText, typeStyle, fontWeight]"
v-html="this.TextBlockCopy"></div>
</template>
<script>
export default {
name: "textBlock",
props: {
customText: String, // used to allow the insert of token values into textblock
justifyText: String, // right, center (left is default)
typeStyle: String, // h1-h6, body, small, label, caption (see Figma or Confluence documentation)
fontWeight: String, // bold=500, default is 400
cmsWidgetName: String,
},
computed: {
TextBlockCopy() {
if (this.customText) {
return this.customText;
}
return this.getCmsContent(this.cmsWidgetName, "Text");
},
},
};
</script>
<style lang="scss" scoped>
.text-block {
&.right {
text-align: right;
}
&.center {
text-align: center;
}
&.bold {
font-weight: 500;
}
}
</style>