@blockslides/extension-add-slide-button 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.cjs CHANGED
@@ -3131,6 +3131,10 @@ var SlideNodeView = class {
3131
3131
  btn.contentEditable = "false";
3132
3132
  if (options.buttonStyle) {
3133
3133
  Object.entries(options.buttonStyle).forEach(([key, value]) => {
3134
+ if (key.startsWith("--")) {
3135
+ btn.style.setProperty(key, value);
3136
+ return;
3137
+ }
3134
3138
  const camelKey = key.replace(
3135
3139
  /-([a-z])/g,
3136
3140
  (_, letter) => letter.toUpperCase()