Skip to content

Preserve outer borders when merging table cells - #3462

Merged
Julia Roldi (juliaroldi) merged 3 commits into
masterfrom
u/juliaroldi/border-merged-cells
Sep 21, 2026
Merged

Julia Roldi (juliaroldi) merged 3 commits into
masterfrom
u/juliaroldi/border-merged-cells

Conversation

@juliaroldi

@juliaroldi Julia Roldi (juliaroldi) commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update mergeTableCells to preserve the right and bottom borders that delimit the selected merge area while retaining the top and left borders from the first cell. Remove internal first-cell borders when the corresponding outer edge has no border, and add coverage for both behaviors.
Before:
MergeCellsBugBorder

After:
MergeCellsFixBorder

How to test

  1. Run yarn test:fast --testPathPattern=mergeTableCells.
  2. Merge cells whose outer right and bottom borders differ from their internal borders and confirm the merged cell uses the outer borders; when those outer edges have no borders, confirm no internal borders remain.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-21 16:53 UTC

@juliaroldi
Julia Roldi (juliaroldi) merged commit a0bd759 into master Sep 21, 2026
8 checks passed
@juliaroldi
Julia Roldi (juliaroldi) deleted the u/juliaroldi/border-merged-cells branch September 21, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants