Skip to content

Commit

Permalink
Spotlight item link replaced inside the section
Browse files Browse the repository at this point in the history
  • Loading branch information
hedayati-m committed Jul 10, 2020
1 parent 9744867 commit 2576291
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
11 changes: 1 addition & 10 deletions Resources/Private/Fusion/Content/Section/Spotlight.Item.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ prototype(Sitegeist.NeosTemplate.Spectral:Content.Section.Spotlight.Item) < prot

alignment = ${q(node).property('alignment')}



renderer = afx`
<section class={'spotlight '+ props.alignment}>
<div class="image">
Expand All @@ -64,14 +62,7 @@ prototype(Sitegeist.NeosTemplate.Spectral:Content.Section.Spotlight.Item) < prot
<p>{props.text}</p>
<img @if.isset={!String.isBlank(props.spotLogo)} class="spotlogo" src={props.spotLogo} />
</div>
<a class="spotlink" href={props.href} @if.has={props.href} target="_blank" target.@if.ifChecked={props.target}></a>
</section>
`
renderer.@process.wrapInAnchor = Neos.Fusion:Tag {
tagName = 'a'
attributes.href = ${props.href}
attributes.target = '_blank'
attributes.target.@if.ifChecked = ${props.targetgi}
content = ${value}
@if.hasAnchor = ${props.href}
}
}
7 changes: 7 additions & 0 deletions Resources/Public/Theme/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,13 @@ button:disabled,
display: -webkit-flex;
display: -ms-flex;
display: flex;
position: relative;
}
.spotlight .spotlink {
position: absolute;
width: 100%;
height: 100%;
z-index: 999;
}
.spotlight .image {
-moz-order: 1;
Expand Down

0 comments on commit 2576291

Please sign in to comment.