From 75ce4c1bec17191970abe5de9f61dbe4b93189c9 Mon Sep 17 00:00:00 2001 From: Jason Sims Date: Thu, 3 Feb 2022 15:58:37 +0900 Subject: [PATCH] Fixed typo in SectionRow The tooltip for collapsing and showing sections in ArgsTags says "Hide [Section Name]" when visible, and "Side [Section Name]" when hidden. Fixed. --- lib/components/src/blocks/ArgsTable/SectionRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/src/blocks/ArgsTable/SectionRow.tsx b/lib/components/src/blocks/ArgsTable/SectionRow.tsx index 3155dfc84957..d92ab2985396 100644 --- a/lib/components/src/blocks/ArgsTable/SectionRow.tsx +++ b/lib/components/src/blocks/ArgsTable/SectionRow.tsx @@ -100,7 +100,7 @@ export const SectionRow: FC = ({ const caption = level === 'subsection' ? `${itemCount} item${itemCount !== 1 ? 's' : ''}` : ''; const icon = expanded ? 'arrowdown' : 'arrowright'; - const helperText = `${expanded ? 'Hide' : 'Side'} ${ + const helperText = `${expanded ? 'Hide' : 'Show'} ${ level === 'subsection' ? itemCount : label } item${itemCount !== 1 ? 's' : ''}`;