Let canvas toolbar inherit the editor preference accent
This commit is contained in:
1 parent
01c1aa567e
commit
45343760e0
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/block-editor",
|
||||
"version": "0.1.11",
|
||||
"version": "0.1.12",
|
||||
"type": "module",
|
||||
"description": "Hydrated accessible editor runtime for WRNexus block documents.",
|
||||
"exports": {
|
||||
|
||||
@@ -21,7 +21,7 @@ export function showBuilderBlockActions(canvas: Document, id: string, label: str
|
||||
toolbar.dataset.builderBlockActions = "";
|
||||
toolbar.setAttribute("role", "toolbar");
|
||||
toolbar.setAttribute("aria-label", label + " actions");
|
||||
toolbar.style.cssText = "position:absolute;z-index:100;display:flex;gap:2px;align-items:center;padding:3px;box-sizing:border-box;max-width:100%;border-radius:6px;background:#7c3aed;color:white;font:11px Arial;box-shadow:0 3px 12px #0003";
|
||||
toolbar.style.cssText = "position:absolute;z-index:100;display:flex;gap:2px;align-items:center;padding:3px;box-sizing:border-box;max-width:100%;border-radius:6px;background:var(--wrn-builder-accent,var(--wrn-color-primary,#2563eb));color:white;font:11px Arial;box-shadow:0 3px 12px #0003";
|
||||
const name = canvas.createElement("strong");
|
||||
name.textContent = label.split(" — ")[0];
|
||||
name.title = label;
|
||||
|
||||
Reference in new issue
Block a user