From 848bde5066c29455578c3bc9d5a2a26961f22c0b Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Mon, 7 Oct 2024 10:35:25 -0700 Subject: [PATCH] feature: add support for secondary nav on EDU Collections template (#650) * adding support for NavSecondary on EDU Collections template * fixing width of jump menu --- .../components/NavSecondary/NavSecondary.vue | 2 +- .../PageEduCollectionsDetail.stories.js | 37 +++++++++++++++++++ .../PageEduCollectionsDetail.vue | 21 ++++++++--- 3 files changed, 53 insertions(+), 7 deletions(-) diff --git a/packages/vue/src/components/NavSecondary/NavSecondary.vue b/packages/vue/src/components/NavSecondary/NavSecondary.vue index 573674b7..fd8f90ce 100644 --- a/packages/vue/src/components/NavSecondary/NavSecondary.vue +++ b/packages/vue/src/components/NavSecondary/NavSecondary.vue @@ -10,7 +10,7 @@ }" >
{ }) const computedClass = computed((): string => { - if (heroInline.value || !data?.heroImage) { + if ((heroInline.value || !data?.heroImage) && !data?.breadcrumb) { return 'pt-5 lg:pt-12' - } else if (!heroInline.value) { + } else if (!heroInline.value || data?.breadcrumb) { return '-nav-offset' } return '' @@ -63,8 +64,16 @@ const computedClass = computed((): string => { :class="!data.showMetaPanel ? 'mb-10' : ''" /> + + + { :primary-subject="data.primarySubject" :additional-subjects="data.additionalSubjects" :grade-levels="data.gradeLevels" - :negative-top="!heroInline" - :negative-bottom="heroInline" + :negative-top="!heroInline && !data.breadcrumb && data.heroImage ? true : false" + :negative-bottom="heroInline && !data.breadcrumb" /> @@ -115,7 +124,7 @@ const computedClass = computed((): string => {