carbon-react 147.8.0 → 147.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,11 +86,11 @@ const Accordion = /*#__PURE__*/React.forwardRef(({
86
86
  }, headerSpacing), /*#__PURE__*/React.createElement(StyledAccordionHeadingsContainer, {
87
87
  "data-element": "accordion-headings-container",
88
88
  hasValidationIcon: showValidationIcon
89
- }, /*#__PURE__*/React.createElement(StyledAccordionTitle, {
89
+ }, typeof title === "string" ? /*#__PURE__*/React.createElement(StyledAccordionTitle, {
90
90
  "data-element": "accordion-title",
91
91
  size: size,
92
92
  variant: variant
93
- }, getTitle()), variant !== "subtle" && /*#__PURE__*/React.createElement(React.Fragment, null, showValidationIcon && /*#__PURE__*/React.createElement(ValidationIcon, {
93
+ }, isExpanded ? openTitle || title : title) : getTitle(), variant !== "subtle" && /*#__PURE__*/React.createElement(React.Fragment, null, showValidationIcon && /*#__PURE__*/React.createElement(ValidationIcon, {
94
94
  error: error,
95
95
  warning: warning,
96
96
  info: info,
@@ -95,11 +95,11 @@ const Accordion = exports.Accordion = /*#__PURE__*/_react.default.forwardRef(({
95
95
  }, headerSpacing), /*#__PURE__*/_react.default.createElement(_accordion.StyledAccordionHeadingsContainer, {
96
96
  "data-element": "accordion-headings-container",
97
97
  hasValidationIcon: showValidationIcon
98
- }, /*#__PURE__*/_react.default.createElement(_accordion.StyledAccordionTitle, {
98
+ }, typeof title === "string" ? /*#__PURE__*/_react.default.createElement(_accordion.StyledAccordionTitle, {
99
99
  "data-element": "accordion-title",
100
100
  size: size,
101
101
  variant: variant
102
- }, getTitle()), variant !== "subtle" && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showValidationIcon && /*#__PURE__*/_react.default.createElement(_validations.default, {
102
+ }, isExpanded ? openTitle || title : title) : getTitle(), variant !== "subtle" && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showValidationIcon && /*#__PURE__*/_react.default.createElement(_validations.default, {
103
103
  error: error,
104
104
  warning: warning,
105
105
  info: info,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "147.8.0",
3
+ "version": "147.8.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",