File tree 3 files changed +9
-3
lines changed
www/src/content/docs/guides
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " astro-icon " : patch
3
+ " www " : patch
4
+ ---
5
+
6
+ Replaces deprecated ` xlink:href ` attribute with standard ` href ` attribute
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ if (includeSymbol) {
130
130
) : (
131
131
<Fragment >
132
132
{ includeSymbol && <symbol id = { id } viewBox = { viewBox } set :html = { normalizedBody } />}
133
- <use xlink : href = { ` #${id } ` } />
133
+ <use href = { ` #${id } ` } />
134
134
</Fragment >
135
135
)
136
136
}
Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ import { Icon } from 'astro-icon/components'
56
56
<!-- First usage generates the following HTML -->
57
57
<svg data-icon="logo">
58
58
<symbol id="ai:uniqueid"><!-- contents of /src/icons/logo.svg --></symbol>
59
- <use xlink: href="#ai:uniqueid"></use>
59
+ <use href="#ai:uniqueid"></use>
60
60
</svg>
61
61
62
62
<Icon name="logo" />
63
63
<!-- Additional usage generates the following HTML -->
64
64
<svg data-icon="logo">
65
- <use xlink: href="#ai:uniqueid"></use>
65
+ <use href="#ai:uniqueid"></use>
66
66
</svg>
67
67
```
68
68
You can’t perform that action at this time.
0 commit comments