Skip to content

Commit 987ac8c

Browse files
committed
replace notification with a simple Box
1 parent c358245 commit 987ac8c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

packages/bento-design-system/src/Tabs/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ export type TabsConfig = TabsWidthConfig &
3636
uppercaseLabel: boolean;
3737
iconSize: IconProps["size"];
3838
notificationSize: number;
39-
notificationColor: BentoSprinkles["fill"];
39+
notificationColor: BentoSprinkles["color"];
4040
};

packages/bento-design-system/src/Tabs/createTabs.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { usePress } from "@react-aria/interactions";
2-
import { Box, Columns, Column, bentoSprinkles } from "../internal";
2+
import { Box, Columns, Column } from "../internal";
33
import { Children, IconProps, Label } from "..";
44
import { LocalizedString } from "../util/LocalizedString";
55
import { tabRecipe } from "./Tabs.css";
@@ -65,15 +65,15 @@ export function createTabs(config: TabsConfig) {
6565
</Label>
6666
{hasNotification && (
6767
<Column width="content">
68-
<svg
69-
className={bentoSprinkles({
70-
fill: config.notificationColor,
71-
})}
72-
width={config.notificationSize}
73-
viewBox="0 0 24 24"
74-
>
75-
<path d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Z" />
76-
</svg>
68+
<Box
69+
borderRadius="circled"
70+
color={config.notificationColor}
71+
style={{
72+
width: config.notificationSize,
73+
height: config.notificationSize,
74+
background: "currentColor",
75+
}}
76+
></Box>
7777
</Column>
7878
)}
7979
</Columns>

0 commit comments

Comments
 (0)