Skip to content

Commit 1445b7f

Browse files
committed
fix: Adjust logic for adding chevron right icon to links (WWWD-2183)
1 parent cda7763 commit 1445b7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/components/bolt-headline/src/_typography.twig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
iconPosition ? baseClass ~ "--icon-position-" ~ iconPosition : ""
4444
] %}
4545

46-
{% if url and icon is not defined %}
46+
{#
47+
If this is a link, add a right chevron icon by default. There are only two ways to opt out:
48+
- Set 'icon: false' to explicitly have no icon
49+
- Set a different icon to use instead of the default
50+
#}
51+
{% if url and icon is not sameas(false) and icon.name is empty %}
4752
{% set icon = icon | default({}) | merge({
4853
name: "chevron-right"
4954
}) %}

0 commit comments

Comments
 (0)