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

fix: return format for border colors as it is Alpha is not supported by mpdf

parent ba565222
Branches
Tags
1 merge request!1Main
Pipeline #481460 failed
...@@ -205,10 +205,10 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -205,10 +205,10 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
label={__("Border row width", 'flexible-invoices-core')} label={__("Border row width", 'flexible-invoices-core')}
values={ values={
{ {
headerBorderRowWidthTop: headerBorderRowWidthTop, headerBorderRowWidthTop,
headerBorderRowWidthLeft: headerBorderRowWidthLeft, headerBorderRowWidthLeft,
headerBorderRowWidthRight: headerBorderRowWidthRight, headerBorderRowWidthRight,
headerBorderRowWidthBottom: headerBorderRowWidthBottom, headerBorderRowWidthBottom,
} }
} }
onChange={handleMultipleAttributesChange} onChange={handleMultipleAttributesChange}
...@@ -224,10 +224,10 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -224,10 +224,10 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
label={__("Border cell width", 'flexible-invoices-core')} label={__("Border cell width", 'flexible-invoices-core')}
values={ values={
{ {
headerBorderCellWidthTop: headerBorderCellWidthTop, headerBorderCellWidthTop,
headerBorderCellWidthLeft: headerBorderCellWidthLeft, headerBorderCellWidthLeft,
headerBorderCellWidthRight: headerBorderCellWidthRight, headerBorderCellWidthRight,
headerBorderCellWidthBottom: headerBorderCellWidthBottom, headerBorderCellWidthBottom,
} }
} }
onChange={handleMultipleAttributesChange} onChange={handleMultipleAttributesChange}
...@@ -301,16 +301,17 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -301,16 +301,17 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
label={__('Border row color', 'flexible-invoices-core')} label={__('Border row color', 'flexible-invoices-core')}
value={bodyBorderRowColor} value={bodyBorderRowColor}
enableAlpha={false} enableAlpha={false}
returnFormat={'hex'}
onChange={(value) => setAttributes({bodyBorderRowColor: value})} onChange={(value) => setAttributes({bodyBorderRowColor: value})}
/> />
<QuatroInput <QuatroInput
label={__("Border row width", 'flexible-invoices-core')} label={__("Border row width", 'flexible-invoices-core')}
values={ values={
{ {
bodyBorderRowWidthTop: bodyBorderRowWidthTop, bodyBorderRowWidthTop,
bodyBorderRowWidthLeft: bodyBorderRowWidthLeft, bodyBorderRowWidthLeft,
bodyBorderRowWidthRight: bodyBorderRowWidthRight, bodyBorderRowWidthRight,
bodyBorderRowWidthBottom: bodyBorderRowWidthBottom, bodyBorderRowWidthBottom,
} }
} }
onChange={handleMultipleAttributesChange} onChange={handleMultipleAttributesChange}
...@@ -319,16 +320,17 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -319,16 +320,17 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
label={__('Border cell color', 'flexible-invoices-core')} label={__('Border cell color', 'flexible-invoices-core')}
value={bodyBorderCellColor} value={bodyBorderCellColor}
enableAlpha={false} enableAlpha={false}
returnFormat={'hex'}
onChange={(value) => setAttributes({bodyBorderCellColor: value})} onChange={(value) => setAttributes({bodyBorderCellColor: value})}
/> />
<QuatroInput <QuatroInput
label={__("Border cell width", 'flexible-invoices-core')} label={__("Border cell width", 'flexible-invoices-core')}
values={ values={
{ {
bodyBorderCellWidthTop: bodyBorderCellWidthTop, bodyBorderCellWidthTop,
bodyBorderCellWidthLeft: bodyBorderCellWidthLeft, bodyBorderCellWidthLeft,
bodyBorderCellWidthRight: bodyBorderCellWidthRight, bodyBorderCellWidthRight,
bodyBorderCellWidthBottom: bodyBorderCellWidthBottom, bodyBorderCellWidthBottom,
} }
} }
onChange={handleMultipleAttributesChange} onChange={handleMultipleAttributesChange}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment