Skip to content

Commit

Permalink
feat: add internal/external variants
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Jan 31, 2020
1 parent 69070e1 commit 654b254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ module.exports = {
standAlone: false
},
variants: [
{
name: 'External',
context: {
external: true,
}
},
{
name: 'Inverse',
context: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if not standAlone %}<span></span>{% endif %}
<p>
<a href="{{ href }}" class="cta{% if modifier %} cta--{{ modifier }}{% endif %}">{{ label }}{% render '@svg', {svg: 'external'}, true %}</a>
<a {% if external %}rel="external" {% endif %}href="{{ href }}" class="cta{% if modifier %} cta--{{ modifier }}{% endif %}">{{ label }}{% if external %}{% render '@svg', {svg: 'external'}, true %}{% endif %}</a>
</p>

0 comments on commit 654b254

Please sign in to comment.