Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rescope icon identifiers to avoid clashing references across ico…
…ns (#241) Icons that use internal references of the form `url(#…)` or `xlink:href="#…"` to reference groups or specific elements for stuff like gradients or filters have a high risk of clashing when all inlined in the same document. Also, this kind of reference does not work well with the `<use/>` tag. This PR will thus handle those icons the same way as styled icons and just inline them instead of adding those to the icon sprite, and we also scope the identifiers to the icon name to avoid clashes. Fix #235 Test URLs: - Before: https://main--helix-project-boilerplate--adobe.hlx.page/ - After: https://issue235--helix-project-boilerplate--ramboz.hlx.page/
- Loading branch information