lion/packages/icon/stories/icons
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
..
bugs feat(icon): enforce icon security using tagged templates 2019-07-01 17:48:05 +02:00
space feat(icon): enforce icon security using tagged templates 2019-07-01 17:48:05 +02:00
bugs-collection.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00