Skip to content

Commit

Permalink
fixing jump menu links in mobile menu, adding readtime to teachable m…
Browse files Browse the repository at this point in the history
…oments, fixing about the author heading spacing (#575)
  • Loading branch information
stephiescastle committed Aug 28, 2024
1 parent 268308d commit 4172976
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const headingString = computed(() => {
</script>
<template>
<div class="AboutTheAuthor">
<h3 class="text-h4 sm:ml-[130px] pl-10 mb-6">
<h3 class="text-h4 sm:ml-[130px] sm:pl-10 mb-6">
{{ headingString }}
</h3>
<template
Expand Down
1 change: 1 addition & 0 deletions packages/vue/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export interface PageObject {
slug: string
url: string
title: string
readTime?: string
getTopicsForDisplay?: Topic[]
showJumpMenu?: boolean
label?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ const computedClass = computed((): string => {
/>

<NavJumpMenu
v-if="data.showJumpMenu"
ref="PageEduCollectionsDetailJumpMenu"
:title="data.title"
:blocks="data.body"
:enabled="data.showJumpMenu"
dropdown-text="In this collection"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ export default defineComponent({
</LayoutHelper>
<NavJumpMenu
v-if="data.showJumpMenu"
:title="data.title"
:blocks="data.body"
:enabled="data.showJumpMenu"
dropdown-text="In this article"
/>
<!-- inline hero content -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ const consolidatedSections = computed((): EduLessonSectionObject[] => {
ref="PageEduLessonJumpMenu"
:title="data.title"
:blocks="consolidatedBlocks"
:enabled="true"
dropdown-text="In this lesson"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ defineExpose({
itemtype="http://schema.org/Article"
>
<NavJumpMenu
v-if="data.showJumpMenu"
ref="PageEduNewsDetailJumpMenu"
:title="data.title"
:blocks="data.body"
:enabled="data.showJumpMenu"
dropdown-text="In this news article"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const BaseStory = {
url: 'http://localhost:3000/edu/resources/teachable-moment',
pageType: 'EDUTeachableMomentPage',
contentType: 'edu_resources.EDUTeachableMomentPage',
readTime: '5 min read',
showJumpMenu: true,
thumbnailImage: {
__typename: 'CustomImage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ const computedClass = computed((): string => {
:class="computedClass"
>
<NavJumpMenu
v-if="data.showJumpMenu"
ref="PageEduTeachableMomentJumpMenu"
:title="data.title"
:blocks="data.body"
:enabled="data.showJumpMenu"
dropdown-text="In this Teachable Moment"
/>

Expand All @@ -97,6 +97,7 @@ const computedClass = computed((): string => {
>
<DetailHeadline
:title="data.title"
:read-time="data.readTime"
label="Teachable Moment"
pill
/>
Expand Down

0 comments on commit 4172976

Please sign in to comment.