lion/packages/icon/test
Mikhail Bashkirov a6b0780d4f feat(icon): enforce icon security using tagged templates
BREAKING: Icon definition requires a function using a tag passed via arguments:

```js
// myicon.svg.js

// before
export default '<svg>...</svg>';

// after
export default tag => tag`<svg>...</svg>`;
```

Application developers have an alternative shortcut to use in-place with lit-html:

```js
// MyComponent.js

// before
render() {
  return html`
    <lion-icon .svg="${'<svg>...</svg>'}"></lion-icon>
  `;
}

// after
render() {
  return html`
    <lion-icon .svg="${html`<svg>...</svg>`}"></lion-icon>
  `;
}
```
2019-07-01 17:48:05 +02:00
..
hammer.svg.js feat(icon): enforce icon security using tagged templates 2019-07-01 17:48:05 +02:00
heart.svg.js feat(icon): enforce icon security using tagged templates 2019-07-01 17:48:05 +02:00
lion-icon.test.js feat(icon): enforce icon security using tagged templates 2019-07-01 17:48:05 +02:00
myIcon.bundle.js chore(icon): clean up SVG bundle module for tests 2019-06-27 18:18:52 +02:00