mp-darkmode 1.2.3-beta.3 → 1.2.3-beta.4

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/darkmode.js CHANGED
@@ -3497,11 +3497,11 @@ var SDK = /*#__PURE__*/function () {
3497
3497
  isTextColor: true,
3498
3498
  parentElementBgColorStr: newColor || color
3499
3499
  }, isUpdate, needReset);
3500
- if (ret.newColor) {
3501
- extStyle += _global__WEBPACK_IMPORTED_MODULE_4__.cssUtils.genCssKV('color', ret.newColor);
3502
- } else {
3503
- extStyle += _global__WEBPACK_IMPORTED_MODULE_4__.cssUtils.genCssKV('color', parentTextColor);
3504
- }
3500
+ extStyle += _global__WEBPACK_IMPORTED_MODULE_4__.cssUtils.genCssKV('color', ret.newColor || parentTextColor);
3501
+ (0,_domUtils__WEBPACK_IMPORTED_MODULE_5__.getChildrenAndIt)(el).forEach(function (dom) {
3502
+ dom[_constant__WEBPACK_IMPORTED_MODULE_2__.COLORATTR] = ret.newColor || parentTextColor;
3503
+ dom[_constant__WEBPACK_IMPORTED_MODULE_2__.ORIGINAL_COLORATTR] = parentTextColor;
3504
+ });
3505
3505
  }
3506
3506
  }
3507
3507
  } else if (options.isTextColor || options.isBorderColor) {