You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Accessible name via space delimtted list of IDs for the expandable section toggle. */
64
64
toggleAriaLabelledBy?: string;
65
+
/** Icon shown in toggle when variant is not truncated. */
66
+
toggleIcon?: React.ReactNode;
67
+
/** Whether to show a toggle icon when variant is not truncated. If omitted, it is important to ensure the current state of the ExpandableSection is conveyed, most likely by having dynamic toggle text. */
68
+
hasToggleIcon?: boolean;
65
69
/** Truncates the expandable content to the specified number of lines when using the
66
70
* "truncate" variant.
67
71
*/
@@ -211,6 +215,8 @@ class ExpandableSection extends Component<ExpandableSectionProps, ExpandableSect
211
215
toggleContent,
212
216
toggleAriaLabel,
213
217
toggleAriaLabelledBy,
218
+
toggleIcon =<AngleRightIcon/>,
219
+
hasToggleIcon =true,
214
220
children,
215
221
isExpanded,
216
222
isDetached,
@@ -267,13 +273,10 @@ class ExpandableSection extends Component<ExpandableSectionProps, ExpandableSect
0 commit comments