Skip to content

Commit 6799f34

Browse files
committed
fix: update badge element in TabGroup to use span instead of div
1 parent 7fa7c13 commit 6799f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/TabGroup/TabGroup.helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const getTabIcon = ({
4747
}
4848

4949
export const getTabBadge = (badge: TabProps['badge'], className: string) =>
50-
badge !== null && <div className={`tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${className}`}>{badge}</div>
50+
badge !== null && <span className={`tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${className}`}>{badge}</span>
5151

5252
export const getTabIndicator = (showIndicator: TabProps['showIndicator']) =>
5353
showIndicator && <span className="tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" />

0 commit comments

Comments
 (0)