Skip to content

Commit

Permalink
feat(core): support override tui-svg width and height by css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 16, 2023
1 parent ca941e2 commit e4ba597
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions projects/core/components/svg/svg.style.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
@default-size: 1.5rem;

:host {
display: inline-flex;
vertical-align: middle;
flex-shrink: 0;
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;
Expand Down

0 comments on commit e4ba597

Please sign in to comment.