Skip to content

Commit 0d0e2c6

Browse files
committed
enable implementors to set --uui-badge-inset
1 parent d635fdd commit 0d0e2c6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/uui-badge/lib/uui-badge.element.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ export class UUIBadgeElement extends LitElement {
1414
static styles = [
1515
css`
1616
:host {
17-
position: absolute;
17+
position: var(--uui-badge-position, absolute);
1818
display: flex;
1919
justify-content: center;
2020
align-items: center;
2121
22-
/* top: -8px;
23-
right: -8px; */
2422
padding: var(--uui-size-1) var(--uui-size-2);
25-
--uui-badge-inset: -8px -8px auto auto;
26-
/* 4 different ones */
27-
inset: var(--uui-badge-inset);
23+
inset: var(--uui-badge-inset, -8px -8px auto auto);
2824
2925
text-align: center;
3026
font-size: var(--uui-badge-font-size, var(--uui-type-small-size));
3127
font-weight: 900;
3228
line-height: 1;
3329
34-
margin-right: 0 !important;
30+
margin-right: 0;
3531
3632
min-width: var(--uui-size-8);
3733
min-height: var(--uui-size-8);

0 commit comments

Comments
 (0)