@cypress-design/react-statusicon 0.2.0 → 0.2.2

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.
package/dist/index.umd.js CHANGED
@@ -290,7 +290,7 @@ function __rest(s, e) {
290
290
  var compileReactIconProperties = function (_a) {
291
291
  var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
292
292
  var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
293
- if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName)) {
293
+ if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
294
294
  newAttributes[attrName] =
295
295
  attributes[attrName];
296
296
  }