Commit d520572
fix(a11y): reset figure default margins; refresh server-util snapshots
Two CI fixes for #2717:
- Block.css: add `margin: 0` to .bn-file-block-content-wrapper so the
wrapper looks identical whether it renders as <figure> (captioned)
or <div> (uncaptioned). Browser default <figure> margin is `1em 40px`,
whereas the previous <div>+<p class="bn-file-caption"> structure had
the <p> margins reset by .bn-default-styles. Without this reset the
captioned-image visual snapshot grew by ~50px.
- server-util/ServerBlockNoteEditor.test.ts.snap: refresh — these
snapshots cover the full HTML/markdown round-trip and were missed
in the previous snapshot pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6864de8 commit d520572
2 files changed
Lines changed: 7 additions & 4 deletions
File tree
- packages
- core/src/editor
- server-util/src/context/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments