@blockslides/extension-add-slide-button 0.2.0 → 0.2.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.
package/dist/index.js CHANGED
@@ -3104,6 +3104,10 @@ var SlideNodeView = class {
3104
3104
  btn.contentEditable = "false";
3105
3105
  if (options.buttonStyle) {
3106
3106
  Object.entries(options.buttonStyle).forEach(([key, value]) => {
3107
+ if (key.startsWith("--")) {
3108
+ btn.style.setProperty(key, value);
3109
+ return;
3110
+ }
3107
3111
  const camelKey = key.replace(
3108
3112
  /-([a-z])/g,
3109
3113
  (_, letter) => letter.toUpperCase()