@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.js CHANGED
@@ -428,8 +428,11 @@ function useRowReorder({ onRowReorder, labels, viewportRef, getCenterRows, nameR
428
428
  body.append(rowClone);
429
429
  ghostTable.append(colgroup, body);
430
430
  element.replaceChildren(ghostTable);
431
- const surface = getComputedStyle(source).getPropertyValue("--ledger-body-bg").trim();
432
- if (surface !== "") element.style.setProperty("--ledger-body-bg", surface);
431
+ const sourceStyle = getComputedStyle(source);
432
+ for (const variable of ["--ledger-body-bg", "--ledger-border-color"]) {
433
+ const value = sourceStyle.getPropertyValue(variable).trim();
434
+ if (value !== "") element.style.setProperty(variable, value);
435
+ }
433
436
  const rowRect = source.getBoundingClientRect();
434
437
  ghostOrigin.current = {
435
438
  x: rowRect.left - ghostPosition.current.x,