You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -568,7 +537,7 @@ They use short text, color, and icons for quick recognition and are placed near
568
537
569
538
This story covers how to use Fluent \`Badge\`, \`CounterBadge\`, and \`PresenceBadge\` inside data tables.
570
539
571
-
In Axis yellow brand themes, prefer outlined and tint badges. Avoid filled badges because
540
+
In Axis we use the **tint** appearance with **circular** shape. Avoid filled badges because
572
541
on-brand black foreground colors conflict with filled badge token usage.
573
542
`,
574
543
},
@@ -580,27 +549,16 @@ export default meta;
580
549
typeStory=StoryObj<typeofmeta>;
581
550
582
551
/**
583
-
* Use tinted badges when badges appear on many rows. This minimises cognitive load and
552
+
* Use tinted badges when badges appear on many rows. This minimizes cognitive load and
584
553
* creates visual balance across the table.
585
554
*
586
555
* The status column is **never** the first column — badges are secondary and supportive.
587
556
*/
588
557
exportconstOutlinedStatusBadge: Story={
589
-
name: "Status badge (tint — recommended)",
558
+
name: "Status badge",
590
559
render: ()=><StatusTableappearance="tint"/>,
591
560
};
592
561
593
-
/**
594
-
* Choose the badge appearance based on context:
595
-
* - **Outlined** — default for tables; low visual weight when many badges are visible
596
-
* - **Tint** — suitable when you need extra emphasis while preserving readable contrast
597
-
* - **Filled** — don't use in our yellow brand theme due to on-brand foreground token collision
598
-
*/
599
-
exportconstAppearanceComparison: Story={
600
-
name: "Outlined + tint (filled is don't)",
601
-
render: ()=><FilledVsOutlinedTable/>,
602
-
};
603
-
604
562
/**
605
563
* Use multiple badges in a single cell when the facts they represent are **independent**.
606
564
* Here a `PresenceBadge` (connectivity state) is combined with a `Badge` (severity level).
@@ -614,6 +572,7 @@ export const MultipleBadgesPerCell: Story = {
614
572
615
573
/**
616
574
* `CounterBadge` is best for showing aggregate counts such as open alerts or unread items.
575
+
* However because of the problem of using on-brand black foreground colors conflicting with filled badge token usage, it is recommended to use the badge component instead. Use medium size and tint appearance with circular shape.
617
576
* Show a neutral placeholder (e.g. `—`) instead of a zero counter to reduce noise.
0 commit comments