Skip to content

Use code.regular.small for pre in table cells - #3353

Merged
enf0rc3 merged 1 commit into
mainfrom
willlaugesen/dpt-3123-fix-css-class-for-code-elements-in-tables
Aug 13, 2026
Merged

Use code.regular.small for pre in table cells#3353
enf0rc3 merged 1 commit into
mainfrom
willlaugesen/dpt-3123-fix-css-class-for-code-elements-in-tables

Conversation

@enf0rc3

@enf0rc3 enf0rc3 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Closes DPT-3123.

Inline <code> in tables already used text.code.regular.small (added in #3311). A bare <pre> in a table cell was missed by that selector and kept the medium code size, and a fenced block in a cell would have shrunk its <code> inside an unchanged wrapper. The selector now covers both.

Verified on permissions, whose table has both: inline code and the <pre> cell both compute to 13px/20px (the <pre> was 14px before).

before:
permissions
After:
permissions

image

🤖 Generated with Claude Code

The table rule only matched <code>, so a bare <pre> in a cell kept the medium
code size. Widened the selector to cover both.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3353.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@enf0rc3
enf0rc3 merged commit 7693478 into main Aug 13, 2026
7 checks passed
@enf0rc3
enf0rc3 deleted the willlaugesen/dpt-3123-fix-css-class-for-code-elements-in-tables branch August 13, 2026 22:54
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.

3 participants