Skip to content
Snippets Groups Projects
Commit 240f8714 authored by Eryk Mika's avatar Eryk Mika
Browse files

fix: preset units, changed label

parent 9f0a81a3
No related branches found
No related tags found
1 merge request!2Devel
Pipeline #484595 failed with stages
in 23 seconds
......@@ -254,7 +254,7 @@ export default function FlexibleTable({
/>
<ToggleControl
label={__('Duo color table', 'flexible-invoices-core')}
label={__('Alternating row colors', 'flexible-invoices-core')}
checked={multipleBodyBackground}
onChange={(newValue) => setAttributes({multipleBodyBackground: newValue})}
/>
......@@ -317,6 +317,11 @@ export default function FlexibleTable({
bodyBorderRowWidthBottom,
}
}
units={ [
{ label: 'px', value: 'px' },
{ label: 'em', value: 'em' },
{ label: 'pt', value: 'pt' }
] }
onChange={handleMultipleAttributesChange}
/>
<ColorSelector
......@@ -335,6 +340,11 @@ export default function FlexibleTable({
}
}
layout={'row'}
units={ [
{ label: 'px', value: 'px' },
{ label: 'em', value: 'em' },
{ label: 'pt', value: 'pt' }
] }
onChange={handleMultipleAttributesChange}
/>
</PanelBody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment