Skip to content

Commit d759674

Browse files
authored
Merge pull request #59 from contentstack/fix/ECO-3053-banner
fix:hero banner issue fix [ECO-3053]
2 parents 477e497 + 23bc52f commit d759674

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/HeroBanner.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="hero-banner" :style="{ background: `${data.bg_color}` }">
3-
<div :class="[title === 'about-content' ? title : 'home-content']">
3+
<div :class="[title === 'about-content' ? title : 'home-content']" :style="{color:`${data.text_color}`}">
44
<h1 class="hero-title">
55
{{ data.banner_title }}
66
</h1>
@@ -9,12 +9,12 @@
99
'hero-description',
1010
title === 'about-content' ? 'about-desc' : ''
1111
]"
12+
:style="{color:`${data.text_color}`}"
1213
>
1314
{{ data.banner_description }}
1415
</p>
15-
<template v-if="title === 'home-content'">
16+
<template v-if="data.call_to_action.title && data.call_to_action.href">
1617
<router-link
17-
v-if="data.call_to_action.title && data.call_to_action.href"
1818
aria-current="page"
1919
class="btn tertiary-btn"
2020
to="/"

src/components/RenderComponents.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<HeroBanner
1313
v-if="component.hero_banner && page !== 'Blog'"
1414
:key="index"
15-
title="home-content"
1615
:data="component.hero_banner"
1716
/>
1817
<BlogBanner

0 commit comments

Comments
 (0)