diff --git a/src/iss-components/site-sub-header/site-sub-header.vue b/src/iss-components/site-sub-header/site-sub-header.vue index b58be168..191b9cc8 100644 --- a/src/iss-components/site-sub-header/site-sub-header.vue +++ b/src/iss-components/site-sub-header/site-sub-header.vue @@ -3,7 +3,7 @@
{{ content }} @@ -15,13 +15,13 @@
+ v-if="hasSecondaryText" + :class="[justifySubheaderSecondaryText, subHeaderClasses, subHeaderMarginClasses]" + class="subheader-secondary d-flex align-items-start overflow-hidden">

- + :class="[alternateFormatting, secondaryTextClasses]"> +

@@ -49,7 +49,7 @@ export default { hasBackButton: Boolean, issContainingPage: String, justification: String, - justificationSubText: String, + justificationSecondaryText: String, stripRteStyle: Boolean, subContentProperty: String, subHeaderClasses: String, @@ -57,7 +57,7 @@ export default { type: String, default: 'mt-1' }, - subTextClasses: String + secondaryTextClasses: String }, emits: ['click-event'], computed: { @@ -67,33 +67,33 @@ export default { this.contentProperty ?? 'SubHeaderText' ); }, - subText() { - let subTextFromCms = this.getCmsContent( + secondaryText() { + let secondaryTextFromCms = this.getCmsContent( this.cmsWidgetName, this.subContentProperty ?? 'SecondaryText' ); if (this.stripRteStyle) { - subTextFromCms = stripRteStyle(subTextFromCms); + secondaryTextFromCms = stripRteStyle(secondaryTextFromCms); } - let subText = ''; - if (this.doesCopyContainRouterLink(subTextFromCms)) { - splitCopyOnCMSPlaceHolder(subTextFromCms).forEach((sc) => { + let secondaryText = ''; + if (this.doesCopyContainRouterLink(secondaryTextFromCms)) { + splitCopyOnCMSPlaceHolder(secondaryTextFromCms).forEach((sc) => { if (this.doesCopyContainRouterLink(sc)) { - subText += getRouterLinkHtmlStringFromCopy(sc); + secondaryText += getRouterLinkHtmlStringFromCopy(sc); } else { - subText += sc; + secondaryText += sc; } }); } else { - subText = subTextFromCms; + secondaryText = secondaryTextFromCms; } - return subText ?? ''; + return secondaryText ?? ''; }, - hasSubText() { - return this.subText.length > 0; + hasSecondaryText() { + return this.secondaryText.length > 0; }, backButtonAccessibleText() { return this.getCmsContent( @@ -102,15 +102,15 @@ export default { ); }, headerColor() { - return this.subText ? 'dark-header' : 'light-header'; + return this.secondaryText ? 'dark-header' : 'light-header'; }, justifySubheader() { - return this.justification?.toLowerCase() === 'left' - ? 'justify-content-left' - : 'justify-content-center'; + return this.justification?.toLowerCase() === 'center' + ? 'justify-content-center' + : 'justify-content-left'; }, - justifySubheaderSubText() { - return this.justificationSubText?.toLowerCase() === 'center' + justifySubheaderSecondaryText() { + return this.justificationSecondaryText?.toLowerCase() === 'center' ? 'justify-content-center' : 'justify-content-left'; }, diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 855935ad..d0d6c341 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -15,7 +15,7 @@

diff --git a/src/layouts/schedule-page/schedule-page.vue b/src/layouts/schedule-page/schedule-page.vue index f3531c61..38a5b1b1 100644 --- a/src/layouts/schedule-page/schedule-page.vue +++ b/src/layouts/schedule-page/schedule-page.vue @@ -14,7 +14,7 @@