diff --git a/src/community/blocks.tsx b/src/community/blocks.tsx index 83cb0a6fbe..6997967c5e 100644 --- a/src/community/blocks.tsx +++ b/src/community/blocks.tsx @@ -59,7 +59,7 @@ interface RowBlockWithStackingGroup extends RowBlockBaseProps { stackingGroup?: RendersNullableElement; } -type RowBlockProps = ExclusifyUnion; +type RowBlockProps = ExclusifyUnion; export const RowBlock: React.FC = ({ title, @@ -189,9 +189,11 @@ export const HighlightedValueBlock: React.FC = ({ )} {secondaryValue && {secondaryValue}} - - - + {title || description ? ( + + + + ) : null} ); }; @@ -231,12 +233,11 @@ interface ProgressBlockProps { heading: { value: number; + valueColor?: string; text: string; }; description?: string; - - valueColor?: string; 'aria-label'?: string; } @@ -247,7 +248,6 @@ export const ProgressBlock: React.FC = ({ reverse, heading, description, - valueColor = vars.colors.textPrimary, 'aria-label': ariaLabel, }) => { return ( @@ -261,7 +261,7 @@ export const ProgressBlock: React.FC = ({ {progressPercent && } - {heading.value} + {heading.value} {heading.text}