From e4ba597a9f9574e758be632eb0d3c68639af15f6 Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 16 Oct 2023 12:57:11 +0300 Subject: [PATCH] feat(core): support override tui-svg width and height by css variable --- projects/core/components/svg/svg.style.less | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/core/components/svg/svg.style.less b/projects/core/components/svg/svg.style.less index f6ebea47d74cd..8e07539a0159b 100644 --- a/projects/core/components/svg/svg.style.less +++ b/projects/core/components/svg/svg.style.less @@ -1,5 +1,3 @@ -@default-size: 1.5rem; - :host { display: inline-flex; vertical-align: middle; @@ -7,8 +5,8 @@ align-items: center; justify-content: center; line-height: 0; - height: @default-size; - width: @default-size; + height: var(--tui-svg-size, 1.5rem); + width: var(--tui-svg-size, 1.5rem); fill: transparent; stroke: transparent; font-size: 1rem;