patternfly / patternfly-design

Use this repo to file all new feature or design change requests for the PatternFly project
114 stars 104 forks source link

ExpandableSecation's toggleText can accept ReactNode #1171

Closed mareklibra closed 2 years ago

mareklibra commented 2 years ago

Requesting new features, enhancements, or design changes to PatternFly

By having that, the ExpandableSection text (default, expanded, collapsed) can be enriched for an Icon or other React components.

In the ZTPFW project we use this component and would like to show processing state (error, warning, success) of various subcomponents.

mcarrano commented 2 years ago

@mareklibra We have received this request from others and coincidentally just merged a pull request to add this capability: https://github.com/patternfly/patternfly-react/pull/7464 It will be available in our next release. Does this meet your needs?

mareklibra commented 2 years ago

@mcarrano Works for me. Thank you. Closing here.