/* #### Thread Prefixes #### */
.label
{
&:before
{
padding-right: 4px;
.m-faBase();
}
&.label--
{
&ctaAttention:before
{
.m-faContent(@fa-var-exclamation-triangle);
}
&ctaAnnouncement:before
{
.m-faContent(@fa-var-bullhorn);
}
&ctaNotice:before
{
.m-faContent(@fa-var-flag);
}
&ctaPoll:before
{
.m-faContent(@fa-var-poll-h);
}
}
}
That's exactly what I tried but for some reason it adds padding to both sides of the icon. To test it I add a large number like 50px and it shows on both sides of the FA.You can probably just change:before
to:after
and changepadding-right
topadding-left
. You also don't need.m-faBase()
in 2.3+.
Can't get this working in 2.3
It works fine - I still use it without any changes being made.
Sorry but that's rubbish.... seeing as you literally do have to make template changes. After all, how would it know what custom changes to apply? Magic ?
Come on, engage your brain, @Paul B clearly meant the changes still work in 2.3 and further changes aren’t required.![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.