@@ -19,12 +19,14 @@ type FeatureStageBadgeProps = Readonly<
1919 Omit < HTMLAttributes < HTMLSpanElement > , "children" > & {
2020 contentType : keyof typeof featureStageBadgeTypes ;
2121 size ?: "sm" | "md" | "lg" ;
22+ showTooltip ?: boolean ;
2223 }
2324> ;
2425
2526export const FeatureStageBadge : FC < FeatureStageBadgeProps > = ( {
2627 contentType,
2728 size = "md" ,
29+ showTooltip = true , // This is a temporary until the deprecated popover is removed
2830 ...delegatedProps
2931} ) => {
3032 return (
@@ -49,24 +51,26 @@ export const FeatureStageBadge: FC<FeatureStageBadgeProps> = ({
4951 ) }
5052 </ PopoverTrigger >
5153
52- < HelpTooltipContent
53- anchorOrigin = { { vertical : "bottom" , horizontal : "center" } }
54- transformOrigin = { { vertical : "top" , horizontal : "center" } }
55- >
56- < p css = { styles . tooltipDescription } >
57- This feature has not yet reached general availability (GA).
58- </ p >
59-
60- < Link
61- href = { docs ( "/contributing/feature-stages" ) }
62- target = "_blank"
63- rel = "noreferrer"
64- css = { styles . tooltipLink }
54+ { showTooltip && (
55+ < HelpTooltipContent
56+ anchorOrigin = { { vertical : "bottom" , horizontal : "center" } }
57+ transformOrigin = { { vertical : "top" , horizontal : "center" } }
6558 >
66- Learn about feature stages
67- < span style = { visuallyHidden } > (link opens in new tab)</ span >
68- </ Link >
69- </ HelpTooltipContent >
59+ < p css = { styles . tooltipDescription } >
60+ This feature has not yet reached general availability (GA).
61+ </ p >
62+
63+ < Link
64+ href = { docs ( "/contributing/feature-stages" ) }
65+ target = "_blank"
66+ rel = "noreferrer"
67+ css = { styles . tooltipLink }
68+ >
69+ Learn about feature stages
70+ < span style = { visuallyHidden } > (link opens in new tab)</ span >
71+ </ Link >
72+ </ HelpTooltipContent >
73+ ) }
7074 </ Popover >
7175 ) ;
7276} ;
0 commit comments