Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
spelkey-ucd committed Feb 7, 2024
1 parent 7800b2e commit 3140fb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/editor/lib/blocks/ucd-theme-spacer/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default ( props ) => {
"u-space-py": !selectedSpacing,
'u-space-pt--small': selectedSpacing == 'extra-small',
[`u-space-px--${selectedSpacing}`]: selectedSpacing,
[`u-space-py--${selectedSpacing}`]: selectedSpacing,
[`u-space-py--${selectedSpacing}`]: selectedSpacing
});

const blockProps = useBlockProps( {
Expand All @@ -33,6 +33,8 @@ export default ( props ) => {
{slug: "", label: "1x"},
{slug: "medium", label: "1.5x"},
{slug: "large", label: "2x"},
{slug: "huge", label: "4x"},
{slug: "vast", label: "8x"}
].map(v => {
let out = {
slug: v.slug,
Expand All @@ -44,7 +46,7 @@ export default ( props ) => {
if ( v.slug === selectedSpacing ){
out.icon = UCDIcons.render("selected", {style:iconStyle});
out.isDisabled = true;
}
}

return out;
});
Expand All @@ -54,7 +56,7 @@ export default ( props ) => {
return html`
<div ...${ blockProps }>
<${BlockControls} group="block">
<${ToolbarDropdownMenu}
<${ToolbarDropdownMenu}
label="Set Space Amount"
controls=${spaceControls}
icon=${html`<span>${selectedIcon}</span>`}
Expand Down

0 comments on commit 3140fb9

Please sign in to comment.