Skip to content

Releases

<heading-anchors> v1.1.0

Choose a tag to compare

@zachleat zachleat released this 07 Nov 02:10
3e3db47
  • Use markup (e.g. an SVG icon) for the anchor content with a child <template data-ha-content>. It's cloned into both the placeholder and the link and takes precedence over the content attribute.
<heading-anchors>
	<template data-ha-content><svg aria-hidden="true" viewBox="0 0 576 512"><use href="#fas-fa-link"></use></svg></template>
	<h2 id="my-heading">My heading</h2>
</heading-anchors>
  • The accessible label is now built as text, so markup in heading text (e.g. <wa-icon>) or in prefix no longer creates elements inside the link.
  • The content attribute is now plain text in both the placeholder and the link (previously HTML in the link only).