@forter/icon
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -6,2 +6,6 @@ # Change Log | ||
## [8.0.2](https://github.com/forter/design-system/compare/@forter/icon@8.0.1...@forter/icon@8.0.2) (2023-07-20) | ||
**Note:** Version bump only for package @forter/icon | ||
## [8.0.1](https://github.com/forter/design-system/compare/@forter/icon@8.0.0...@forter/icon@8.0.1) (2023-07-20) | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@forter/icon", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "fc-icon from Forter Components", | ||
@@ -15,3 +15,3 @@ "main": "dist/bundle.js", | ||
"dependencies": { | ||
"@forter/component-base": "^9.0.1", | ||
"@forter/component-base": "^9.0.2", | ||
"lit": "^2.7.2" | ||
@@ -22,3 +22,3 @@ }, | ||
}, | ||
"gitHead": "61419bc89201af5bc5fbac3b71a9e4f8de3a7fa3" | ||
"gitHead": "506e63127b97fca1554d4b567a966586f98bb269" | ||
} |
@@ -73,3 +73,5 @@ import { html, LitElement } from 'lit'; | ||
const { icon } = this; | ||
return html` <div id="content">${this.getIcon(icon)}</div> `; | ||
return html` | ||
<div id="content">${this.getIcon(icon)}</div> | ||
`; | ||
} | ||
@@ -76,0 +78,0 @@ |
@@ -5,10 +5,11 @@ import '../src/index'; | ||
const slotRender = slot => args => | ||
html` <fc-icon | ||
icon="${args.icon}" | ||
fallback-icon="${args.fallbackIcon}" | ||
?hoverable="${args.hoverable}" | ||
?original-fill="${args.originalFill}" | ||
> | ||
${slot} | ||
</fc-icon>`; | ||
html` | ||
<fc-icon | ||
icon="${args.icon}" | ||
fallback-icon="${args.fallbackIcon}" | ||
?hoverable="${args.hoverable}" | ||
?original-fill="${args.originalFill}"> | ||
${slot} | ||
</fc-icon> | ||
`; | ||
@@ -63,3 +64,7 @@ const fingerprintSvg = svg` | ||
export const SlottedSvg = { | ||
render: slotRender(html`${fingerprintSvg}`), | ||
render: slotRender( | ||
html` | ||
${fingerprintSvg} | ||
` | ||
), | ||
args: { | ||
@@ -66,0 +71,0 @@ icon: null, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
603261
3563