@coldsmirk/ledger-mantine 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -452,8 +452,11 @@ function useRowReorder({ onRowReorder, labels, viewportRef, getCenterRows, nameR
452
452
  body.append(rowClone);
453
453
  ghostTable.append(colgroup, body);
454
454
  element.replaceChildren(ghostTable);
455
- const surface = getComputedStyle(source).getPropertyValue("--ledger-body-bg").trim();
456
- if (surface !== "") element.style.setProperty("--ledger-body-bg", surface);
455
+ const sourceStyle = getComputedStyle(source);
456
+ for (const variable of ["--ledger-body-bg", "--ledger-border-color"]) {
457
+ const value = sourceStyle.getPropertyValue(variable).trim();
458
+ if (value !== "") element.style.setProperty(variable, value);
459
+ }
457
460
  const rowRect = source.getBoundingClientRect();
458
461
  ghostOrigin.current = {
459
462
  x: rowRect.left - ghostPosition.current.x,