From 2afe9d19655fa07ca897ada13b91a20b6e7d8fc4 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 21 Oct 2024 23:37:00 +0200 Subject: [PATCH] Fix css variable names. --- package.json | 2 +- tp-avatar.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6a52574..26b1fa2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-avatar", - "version": "1.0.2", + "version": "1.0.3", "description": "", "main": "tp-avatar.js", "scripts": { diff --git a/tp-avatar.js b/tp-avatar.js index 1f0a7bd..4edb0f4 100644 --- a/tp-avatar.js +++ b/tp-avatar.js @@ -16,6 +16,8 @@ class TpAvatar extends LitElement { display: inline-block; position: relative; border-radius: 50%; + width: var(--tp-avatar-size, 32px); + height: var(--tp-avatar-size, 32px); } :host [hidden] { @@ -43,8 +45,8 @@ class TpAvatar extends LitElement { position: absolute; inset: 0; - --tp-icon-height: var(--ef-avatar-size, 32px); - --tp-icon-width: var(--ef-avatar-size, 32px); + --tp-icon-height: var(--tp-avatar-size, 32px); + --tp-icon-width: var(--tp-avatar-size, 32px); } tp-icon.hidden {