Skip to content
Snippets Groups Projects

Devel

Merged Eryk Mika requested to merge devel into main
1 file
+ 11
1
Compare changes
  • Side-by-side
  • Inline
+ 11
1
@@ -254,7 +254,7 @@ export default function FlexibleTable({
@@ -254,7 +254,7 @@ export default function FlexibleTable({
/>
/>
<ToggleControl
<ToggleControl
label={__('Duo color table', 'flexible-invoices-core')}
label={__('Alternating row colors', 'flexible-invoices-core')}
checked={multipleBodyBackground}
checked={multipleBodyBackground}
onChange={(newValue) => setAttributes({multipleBodyBackground: newValue})}
onChange={(newValue) => setAttributes({multipleBodyBackground: newValue})}
/>
/>
@@ -317,6 +317,11 @@ export default function FlexibleTable({
@@ -317,6 +317,11 @@ export default function FlexibleTable({
bodyBorderRowWidthBottom,
bodyBorderRowWidthBottom,
}
}
}
}
 
units={ [
 
{ label: 'px', value: 'px' },
 
{ label: 'em', value: 'em' },
 
{ label: 'pt', value: 'pt' }
 
] }
onChange={handleMultipleAttributesChange}
onChange={handleMultipleAttributesChange}
/>
/>
<ColorSelector
<ColorSelector
@@ -335,6 +340,11 @@ export default function FlexibleTable({
@@ -335,6 +340,11 @@ export default function FlexibleTable({
}
}
}
}
layout={'row'}
layout={'row'}
 
units={ [
 
{ label: 'px', value: 'px' },
 
{ label: 'em', value: 'em' },
 
{ label: 'pt', value: 'pt' }
 
] }
onChange={handleMultipleAttributesChange}
onChange={handleMultipleAttributesChange}
/>
/>
</PanelBody>
</PanelBody>
Loading