Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
WordPress UI Components
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
WordPress UI Components
Commits
65133353
Commit
65133353
authored
4 months ago
by
Eryk Mika
Browse files
Options
Downloads
Patches
Plain Diff
fix: return format for border colors as it is Alpha is not supported by mpdf
parent
ba565222
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Main
Pipeline
#481460
failed
4 months ago
Stage: prepare-vendor
Stage: tests
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FlexibleTable/FlexibleTable.jsx
+18
-16
18 additions, 16 deletions
src/FlexibleTable/FlexibleTable.jsx
with
18 additions
and
16 deletions
src/FlexibleTable/FlexibleTable.jsx
+
18
−
16
View file @
65133353
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment