microsoft / microsoft/BCApps

[Bug]: [Document Reporting] Theme docDefaults is lost during layout merge, so the theme's body size never applies

Open
#10,536 1 comment 0 reactions 1 assignee View on GitHub

@v-mortenr is already working on this.

Since Aug 22, 2026.

Bug Team: Integrations
Dominant language
AL
Stars
683
Forks
459
Avg merge
3d 26m
Merged PRs (30d)
633

Description

Describe the issue

The merge that combines header/footer, body and theme into a finished Word layout does not carry w:docDefaults from the theme. Since the theme declares its body font size only in docDefaults, the size is silently dropped and the output falls back to whichever base document's docDefaults survives.

Worse than a no-op: applying the theme can make the result less correct than not applying it. The theme's Normal style carries no w:sz at all — it relies on docDefaults. When it overwrites a header/footer Normal that does carry an explicit size, the explicit size is removed and the paragraph falls to the wrong base.

Expected behavior

A layout built with a given theme renders body text at that theme's declared size. Changing doc_defaults.size_pt in the theme and rebuilding changes the output.

Steps to reproduce

Take one theme and wrong with body layout see header footer is wrong - take the corrected theme and see now it is working. The font styles are wrong on the one with the wrong themes

Additional context

Default Theme with DocumentDef (not working)
Defauult Theme where we have move this to each style (works with merge)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.