Skip to content

Commit 9950aaf

Browse files
committed
Update text in tooltip
1 parent f8224e7 commit 9950aaf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/compass-components/src/components/document-list/document-actions-group.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,20 @@ const DocumentActionsGroup: React.FunctionComponent<
155155
glyph={expanded ? 'CaretDown' : 'CaretRight'}
156156
></Icon>
157157
}
158-
aria-label={expanded ? 'Collapse all' : 'Expand all'}
158+
aria-label={
159+
expanded
160+
? 'Collapse all embedded fields'
161+
: 'Expand all embedded fields'
162+
}
159163
aria-pressed={expanded}
160164
data-testid="expand-document-button"
161165
onClick={onExpand}
162166
className={actionsGroupItem}
163-
tooltipText={expanded ? 'Collapse all' : 'Expand all'}
167+
tooltipText={
168+
expanded
169+
? 'Collapse all embedded fields'
170+
: 'Expand all embedded fields'
171+
}
164172
/>
165173
)}
166174
<span className={actionsGroupItemSeparator}></span>

0 commit comments

Comments
 (0)