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

fix: multi color fix

parent e40ab274
Branches
Tags
1 merge request!1Main
Pipeline #479231 failed
...@@ -385,9 +385,9 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -385,9 +385,9 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
</thead> </thead>
<tbody className={"fitb-item-table-body"}> <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={{ <tr className={"fitb-item-table-row"} style={{
background: (multipleBodyBackground && index === 1) ? bodyBackgroundOdd : bodyBackground, background: (multipleBodyBackground && trIndex === 1) ? bodyBackgroundOdd : bodyBackground,
borderStyle: "solid", borderStyle: "solid",
borderColor: bodyBorderRowColor, borderColor: bodyBorderRowColor,
borderTopWidth: bodyBorderRowWidthTop, borderTopWidth: bodyBorderRowWidthTop,
...@@ -411,7 +411,7 @@ export default function FlexibleTable({attributes, setAttributes, placeholders, ...@@ -411,7 +411,7 @@ export default function FlexibleTable({attributes, setAttributes, placeholders,
key={index} key={index}
value={row} value={row}
style={{ style={{
color: (multipleBodyBackground && index === 1) ? bodyTextColorOdd : bodyTextColor, color: (multipleBodyBackground && trIndex === 1) ? bodyTextColorOdd : bodyTextColor,
textAlign: bodyTextAlign, textAlign: bodyTextAlign,
fontStyle: bodyFontStyle, fontStyle: bodyFontStyle,
fontSize: bodyFontSize, fontSize: bodyFontSize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment