Skip to content

Commit b3752bc

Browse files
authored
Icon title feature + related bug fixes (#1858)
* Add title property to icon component * Update icons in other templates
1 parent 7ce128f commit b3752bc

File tree

16 files changed

+83
-37
lines changed

16 files changed

+83
-37
lines changed

.changeset/cuddly-poems-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': minor
3+
---
4+
5+
Add new `title` property to Icon component to make semantic fallback text much more straightforward

.changeset/curly-cameras-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': patch
3+
---
4+
5+
The Ground Nav button's icon is no longer presented inconsistently with other button icons

.changeset/gold-pans-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': patch
3+
---
4+
5+
The default icon fallback now exists (oops)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': patch
3+
---
4+
5+
Icons used in the Alert component no longer use invalid `aria-hidden` values

src/components/alert/alert.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{% if icon %}
66
{% include '@cloudfour/components/icon/icon.twig' with {
77
name: icon,
8-
aria_hidden: true
98
} only %}
109
{% endif %}
1110
{% endblock %}
@@ -30,7 +29,6 @@
3029
{% include '@cloudfour/components/icon/icon.twig' with {
3130
class: 'c-alert__dismiss-icon',
3231
name: 'x',
33-
aria_hidden: true,
3432
} %}
3533
<span class="u-hidden-visually">Dismiss alert</span>
3634
</button>

src/components/badge/badge.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{% if icon %}
44
{% include '@cloudfour/components/icon/icon.twig' with {
55
name: icon,
6-
aria_hidden: 'true',
76
} only %}
87
{% endif %}
98
{% endblock %}

src/components/cloud-cover/demo/extra.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
We
1111
{% include '@cloudfour/components/icon/icon.twig' with {
1212
name: 'heart',
13+
title: 'love',
1314
inline: true
1415
} only %}
1516
<span class="u-hidden-visually">love</span>

src/components/cloud-cover/demo/scene.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
We
1111
{% include '@cloudfour/components/icon/icon.twig' with {
1212
name: 'heart',
13+
title: 'love',
1314
inline: true
1415
} only %}
1516
<span class="u-hidden-visually">love</span>

src/components/comment/comment.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
{% include '@cloudfour/components/icon/icon.twig' with {
5757
name: 'link',
5858
inline: true,
59-
aria_hidden: 'true',
6059
} only %}
6160
</span>
6261
<span class="u-hidden-visually">

src/components/footnote/footnote.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
{% include '@cloudfour/components/icon/icon.twig' with {
88
name: 'arrow-hook-left',
9-
aria_hidden: 'true',
109
} only %}
1110
</a>
1211
</li>

0 commit comments

Comments
 (0)