From e29a4d79baecd5b457f761104776aa0f16a312ac Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 25 May 2023 14:39:32 -0700 Subject: [PATCH] Fix none size not working (#55) --- lib/components/base/Avatar.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/components/base/Avatar.vue b/lib/components/base/Avatar.vue index 8f2047108..a8b80ca25 100644 --- a/lib/components/base/Avatar.vue +++ b/lib/components/base/Avatar.vue @@ -44,7 +44,7 @@ export default { type: String, default: 'sm', validator(value) { - return ['xs', 'sm', 'md', 'lg'].includes(value) + return ['xs', 'sm', 'md', 'lg', 'none'].includes(value) }, }, circle: { @@ -111,6 +111,10 @@ export default { border-radius: var(--radius-lg); } + &.size-none { + --size: unset; + } + &.circle { border-radius: 50%; }