<a href="https://iastate.edu" class="iastate22-link-secondary">Secondary Link Style<span class="arrow"></span></a>
<a href="{{url}}" class="iastate22-link-secondary">{{text}}<span class="arrow"></span></a>
{
"text": "Secondary Link Style",
"url": "https://iastate.edu"
}
.iastate22-link-secondary {
display: inline-block;
appearance: none;
margin: rem(10) 0;
cursor: pointer;
color: $iastate-maroon;
font-family: $typeface-sans-serif;
font-weight: 700;
font-size: rem(18);
line-height: (25 / 18);
text-decoration: none;
position: relative;
.arrow {
bottom: rem(11);
top: initial;
right: initial;
margin-left: rem(11);
}
&:hover {
color: $iastate-maroon;
.arrow {
width: rem(22);
}
}
}
This is a custom component (no class prefix in place as it does not conflict with bootstrap)
<span class="arrow"></span>
is required after the button textindex.scss
file as @import "../components/link-secondary/link-secondary";
link-set
, which allows for multiple instances of the links to be output