File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
site/src/components/FeatureBadge Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,17 @@ export const Medium: Story = {
20
20
size : "md" ,
21
21
} ,
22
22
} ;
23
+
24
+ export const HighlightedSmall : Story = {
25
+ args : {
26
+ size : "sm" ,
27
+ highlighted : true ,
28
+ } ,
29
+ } ;
30
+
31
+ export const HighlightedMedium : Story = {
32
+ args : {
33
+ size : "md" ,
34
+ highlighted : true ,
35
+ } ,
36
+ } ;
Original file line number Diff line number Diff line change @@ -43,22 +43,22 @@ type FeatureBadgeProps = Readonly<
43
43
Omit < HTMLAttributes < HTMLSpanElement > , "children" > & {
44
44
type : keyof typeof featureBadgeTypes ;
45
45
size ?: "sm" | "md" ;
46
- isHighlighted ?: boolean ;
46
+ highlighted ?: boolean ;
47
47
}
48
48
> ;
49
49
50
50
export const FeatureBadge : FC < FeatureBadgeProps > = ( {
51
51
type,
52
52
size = "sm" ,
53
- isHighlighted = false ,
53
+ highlighted = false ,
54
54
...delegatedProps
55
55
} ) => {
56
56
return (
57
57
< span
58
58
css = { [
59
59
styles . badge ,
60
60
size === "md" && styles . mediumText ,
61
- isHighlighted && styles . highlighted ,
61
+ highlighted && styles . highlighted ,
62
62
] }
63
63
{ ...delegatedProps }
64
64
>
You can’t perform that action at this time.
0 commit comments