Skip to content

Commit df6d530

Browse files
committed
refactor: TabGroup - badge css update
1 parent 8d4c38f commit df6d530

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Shared/Components/TabGroup/TabGroup.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Tab = ({
6060
{!showError && !showWarning && Icon && <Icon className={`${iconClassName} ${getIconColorClass()}`} />}
6161
{label}
6262
{badge !== null && (
63-
<div className={`tab-group__tab__badge ${badgeClassName} bcn-1 flex cn-7`}>{badge}</div>
63+
<div className={`tab-group__tab__badge bcn-1 cn-7 flex px-4 ${badgeClassName}`}>{badge}</div>
6464
)}
6565
{showIndicator && <span className="tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" />}
6666
</>

src/Shared/Components/TabGroup/TabGroup.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
}
4949

5050
&__badge {
51-
border-radius: 100%;
52-
width: 20px;
51+
border-radius: 10px;
52+
min-width: 20px;
5353

5454
&--medium {
55-
width: 18px;
55+
min-width: 18px;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)