Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from openforge/cta-fixes
Browse files Browse the repository at this point in the history
fix: change stencil-router-links to a-hrefs for ctas

Closes #3
  • Loading branch information
Khaled Shaaban committed Mar 30, 2018
2 parents 9ca16ab + 0ade034 commit a5eafeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 7 additions & 5 deletions src/components/app-cta/app-cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ export class AppCta {
<slot name="header" />
</h3>

<stencil-route-link url={this.linkUrl}>
<a class="btn btn-primary align-self-center">
<slot name="link" />
</a>
</stencil-route-link>
<a
href={this.linkUrl}
class="btn btn-primary align-self-center"
target="_blank"
>
<slot name="link" />
</a>
</div>
</aside>
);
Expand Down
8 changes: 3 additions & 5 deletions src/components/app-hero/app-hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ export class AppHero {
<slot name="body" />
</p>

<stencil-route-link url={this.linkUrl}>
<a class="btn btn-primary">
<slot name="link" />
</a>
</stencil-route-link>
<a href={this.linkUrl} class="btn btn-primary" target="_blank">
<slot name="link" />
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit a5eafeb

Please sign in to comment.