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

fix: multi color fix

parent e40ab274
No related branches found
No related tags found
1 merge request!1Main
Pipeline #479231 failed with stages
in 4 seconds
......@@ -385,9 +385,9 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
</thead>
<tbody className={"fitb-item-table-body"}>
{Array.from({length: 2}).map((_, index) => (
{Array.from({length: 2}).map((_, trIndex) => (
<tr className={"fitb-item-table-row"} style={{
background: (multipleBodyBackground && index === 1) ? bodyBackgroundOdd : bodyBackground,
background: (multipleBodyBackground && trIndex === 1) ? bodyBackgroundOdd : bodyBackground,
borderStyle: "solid",
borderColor: bodyBorderRowColor,
borderTopWidth: bodyBorderRowWidthTop,
......@@ -411,7 +411,7 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
key={index}
value={row}
style={{
color: (multipleBodyBackground && index === 1) ? bodyTextColorOdd : bodyTextColor,
color: (multipleBodyBackground && trIndex === 1) ? bodyTextColorOdd : bodyTextColor,
textAlign: bodyTextAlign,
fontStyle: bodyFontStyle,
fontSize: bodyFontSize,
......
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