@forter/avatar
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.0.4](https://github.com/forter/web-components/compare/@forter/avatar@3.0.3...@forter/avatar@3.0.4) (2019-11-28) | ||
**Note:** Version bump only for package @forter/avatar | ||
## [3.0.3](https://github.com/forter/web-components/compare/@forter/avatar@3.0.2...@forter/avatar@3.0.3) (2019-11-27) | ||
@@ -8,0 +16,0 @@ |
@@ -112,3 +112,3 @@ import { decorate as _decorate } from './_virtual/_rollupPluginBabelHelpers.js'; | ||
if (src) { | ||
return html`<button> | ||
return html`<button aria-label="${alt}"> | ||
<img alt="${alt}" src="${src}"></img> | ||
@@ -120,3 +120,3 @@ </button> | ||
return html` | ||
<button> | ||
<button aria-label="${alt}"> | ||
<div id="abbr">${initial(abbr)}</div> | ||
@@ -123,0 +123,0 @@ </button> |
{ | ||
"name": "@forter/avatar", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Avatar from Forter Components", | ||
@@ -54,3 +54,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "26a81b071f7d326de0472263bfd092842d61a9f8" | ||
"gitHead": "3892455c25a8e3295c4c78c18c145e051774367f" | ||
} |
@@ -76,5 +76,5 @@ import { chaiDomDiff } from '@open-wc/semantic-dom-diff/chai-dom-diff'; | ||
const element = await fixture(`<${Avatar}></${Avatar}>`); | ||
expect(element).shadowDom.to.equal('<button><div id="abbr"></div></button>'); | ||
expect(element).shadowDom.to.equal('<button aria-label="User Avatar"><div id="abbr"></div></button>'); | ||
}); | ||
}); | ||
}); |
@@ -56,3 +56,3 @@ import { LitElement, html, property } from 'lit-element'; | ||
if (src) { | ||
return html`<button> | ||
return html`<button aria-label="${alt}"> | ||
<img alt="${alt}" src="${src}"></img> | ||
@@ -64,3 +64,3 @@ </button> | ||
return html` | ||
<button> | ||
<button aria-label="${alt}"> | ||
<div id="abbr">${initial(abbr)}</div> | ||
@@ -67,0 +67,0 @@ </button> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
48792
0