@vonaffenfels/slate-editor 1.1.10 → 1.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "fc76d00d7b878bf1beb0597e177ba2b6f1b0d405",
75
+ "gitHead": "840a8741f2c0e62c54c4039a68a0e103c3041322",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -236,10 +236,15 @@ export const SidebarEditorField = ({
236
236
  );
237
237
  case "color":
238
238
  return (
239
- <input
240
- type="color"
241
- value={value || ""}
242
- onChange={e => onChange(fieldKey, e.target.value)}/>
239
+ <div className="flex flex-col">
240
+ <input
241
+ type="color"
242
+ value={value || ""}
243
+ onChange={e => onChange(fieldKey, e.target.value)}/>
244
+ {!!value && (
245
+ <button className="button button--tertiary mt-1" onClick={() => onChange(fieldKey, undefined)}>Zurücksetzen</button>
246
+ )}
247
+ </div>
243
248
  );
244
249
  case "date":
245
250
  return (