Skip to content

Commit 35bca0a

Browse files
committed
feat(tab-button): new tokens to style badge when inside tab button
1 parent f4e4813 commit 35bca0a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Tab Button: Native
2+
// --------------------------------------------------
3+
4+
/// @prop - Badge size
5+
$tab-button-badge-size: var(--badge-size, 16px);
6+
7+
/// @prop - Badge size when empty
8+
$tab-button-badge-size-emtpy: var(--badge-size-emtpy, 8px);
9+
10+
/// @prop - Badge top position
11+
$tab-button-badge-top-position: var(--badge-top-position, 0);
12+
13+
/// @prop - Badge top position when empty
14+
$tab-button-badge-top-position-empty: var(--badge-top-position-empty, 0);
15+
16+
/// @prop - Badge bottom position
17+
$tab-button-badge-bottom-position: var(--badge-bottom-position, calc(50% - 8px));
18+
19+
/// @prop - Badge bottom position when empty
20+
$tab-button-badge-bottom-position-empty: var(--badge-bottom-position-empty, calc(50% - 2px));
21+
22+
/// @prop - Badge left position
23+
$tab-button-badge-start-position: var(--badge-left-position, calc(50% + 12px));
24+
25+
/// @prop - Badge padding top
26+
$tab-button-badge-padding-top: var(--badge-padding-top, 4px);
27+
28+
/// @prop - Badge padding end
29+
$tab-button-badge-padding-end: var(--badge-padding-right, 4px);
30+
31+
/// @prop - Badge padding bottom
32+
$tab-button-badge-padding-bottom: var(--badge-padding-bottom, 4px);
33+
34+
/// @prop - Badge padding start
35+
$tab-button-badge-padding-start: var(--badge-padding-left, 4px);
36+
37+
/// @prop - Badge font size
38+
$tab-button-badge-font-size: var(--badge-font-size, 12px);

0 commit comments

Comments
 (0)