@rogieking/figui3 1.0.61 → 1.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/example.html CHANGED
@@ -18,6 +18,9 @@
18
18
  </fig-header>
19
19
  <fig-avatar src="https://avatars.githubusercontent.com/u/12345678?v=4"
20
20
  name="John Doe"></fig-avatar>
21
+ <fig-avatar size="large"
22
+ src="https://avatars.githubusercontent.com/u/12345678?v=4"
23
+ name="John Doe"></fig-avatar>
21
24
  <fig-avatar name="John Doe"></fig-avatar>
22
25
  <fig-content>
23
26
  <fig-tabs>
package/fig.css CHANGED
@@ -887,6 +887,9 @@ fig-avatar,
887
887
  &::after {
888
888
  content: attr(initials);
889
889
  }
890
+ &[size="large"] {
891
+ --size: 3rem;
892
+ }
890
893
  }
891
894
 
892
895
  /* Color input */
package/fig.js CHANGED
@@ -1391,6 +1391,7 @@ class FigImage extends HTMLElement {
1391
1391
  attributeChangedCallback(name, oldValue, newValue) {
1392
1392
  if (name === "src") {
1393
1393
  this.src = newValue;
1394
+ this.chit.setAttribute("src", this.src);
1394
1395
  }
1395
1396
  if (name === "upload") {
1396
1397
  this.upload = newValue.toLowerCase() === "true";
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.61"
3
+ "version": "1.0.63"
4
4
  }