Skip to content
This repository has been archived by the owner on Jun 26, 2018. It is now read-only.

Commit

Permalink
test code to untie decorative-link.twig from header-alert.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
ygannett committed Apr 5, 2018
1 parent 0002f32 commit f4c1c25
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@
{% set alertId = headerAlert.guid %}
{% endif %}

<section
class="ma__header-alert js-header-alert"
<section
class="ma__header-alert js-header-alert"
data-id="{{ alertId }}"
role="alert">
<div class="ma__header-alert__container">
<span class="ma__header-alert__label">{{ alertPrefix }}</span>
<span class="ma__header-alert__message">
{% if headerAlert.href %}
{% set decorativeLink = headerAlert %}
{% include "@atoms/decorative-link.twig" %}
{# {% set decorativeLink = headerAlert %}
{% include "@atoms/decorative-link.twig" %} #}
<span class="ma__decorative-link">
<a
href="{{headerAlert.href}}"
class="js-clickable-link">{{headerAlert.text}}&nbsp;{% include '@atoms/05-icons/svg-arrow.twig' %}</a>
</span>
{% else %}
{{ headerAlert.text }}
{% endif %}
</span>
</div>
<button
class="ma__header-alert__hide js-header-alert-link"
<button
class="ma__header-alert__hide js-header-alert-link"
title="hide alert">+</button>
</section>

0 comments on commit f4c1c25

Please sign in to comment.