Skip to content

Commit 77699f3

Browse files
julien-deramondmdo
authored andcommitted
Docs: fix StackBlitz icon link examples
1 parent 5f6085a commit 77699f3

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

site/content/docs/5.3/helpers/icon-link.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ Take a regular `<a>` element, add `.icon-link`, and insert an icon on either the
2222

2323
{{< example >}}
2424
<a class="icon-link" href="#">
25-
<svg class="bi" aria-hidden="true"><use xlink:href="#box-seam"></use></svg>
25+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
26+
<path d="M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5l2.404.961L10.404 2l-2.218-.887zm3.564 1.426L5.596 5 8 5.961 14.154 3.5l-2.404-.961zm3.25 1.7-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z"/>
27+
</svg>
2628
Icon link
2729
</a>
2830
{{< /example >}}
2931

3032
{{< example >}}
3133
<a class="icon-link" href="#">
3234
Icon link
33-
<svg class="bi" aria-hidden="true"><use xlink:href="#arrow-right"></use></svg>
35+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
36+
<path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>
37+
</svg>
3438
</a>
3539
{{< /example >}}
3640

@@ -41,7 +45,9 @@ Add `.icon-link-hover` to move the icon to the right on hover.
4145
{{< example >}}
4246
<a class="icon-link icon-link-hover" href="#">
4347
Icon link
44-
<svg class="bi" aria-hidden="true"><use xlink:href="#arrow-right"></use></svg>
48+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
49+
<path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>
50+
</svg>
4551
</a>
4652
{{< /example >}}
4753

@@ -57,7 +63,10 @@ Customize the hover `transform` by overriding the `--bs-icon-link-transform` CSS
5763

5864
{{< example >}}
5965
<a class="icon-link icon-link-hover" style="--bs-icon-link-transform: translate3d(0, -.125rem, 0);" href="#">
60-
<svg class="bi" aria-hidden="true"><use xlink:href="#clipboard"></use></svg>
66+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
67+
<path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/>
68+
<path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/>
69+
</svg>
6170
Icon link
6271
</a>
6372
{{< /example >}}
@@ -67,7 +76,9 @@ Customize the color by overriding the `--bs-link-*` CSS variable:
6776
{{< example >}}
6877
<a class="icon-link icon-link-hover" style="--bs-link-hover-color-rgb: 25, 135, 84;" href="#">
6978
Icon link
70-
<svg class="bi" aria-hidden="true"><use xlink:href="#arrow-right"></use></svg>
79+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
80+
<path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>
81+
</svg>
7182
</a>
7283
{{< /example >}}
7384

@@ -84,6 +95,8 @@ Modify icon links with any of [our link utilities]({{< docsref "/utilities/link/
8495
{{< example >}}
8596
<a class="icon-link icon-link-hover link-success link-underline-success link-underline-opacity-25" href="#">
8697
Icon link
87-
<svg class="bi" aria-hidden="true"><use xlink:href="#arrow-right"></use></svg>
98+
<svg xmlns="http://www.w3.org/2000/svg" class="bi" viewBox="0 0 16 16" aria-hidden="true">
99+
<path d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>
100+
</svg>
88101
</a>
89102
{{< /example >}}

0 commit comments

Comments
 (0)