Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Aug 26, 2024
1 parent e539d5b commit 3c20977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
</button>

<button>
<tui-icon icon="@tui.circle-plus" />
<tui-icon
badge=""
icon="@tui.circle-plus"
/>
Pay the bill
</button>

Expand Down
3 changes: 2 additions & 1 deletion projects/kit/directives/icon-badge/icon-badge.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
position: absolute;
right: 0.143em;
bottom: 0.143em;
display: var(--t-icon-badge, none);
width: 0.57em;
height: 0.57em;
transform: translate(50%, 50%);
mask: var(--t-icon-badge) no-repeat center/contain;
background: currentColor;
}

&::after {
&[style*='--t-icon-badge:']::after {
mask-image: var(--t-icon),
radial-gradient(circle at bottom 0.1em right 0.1em, transparent calc(0.4em - 0.5px), black 0.4em);
}
Expand Down

0 comments on commit 3c20977

Please sign in to comment.