Skip to content

Set annotations off from their citations by default - #322

Merged
dknauss merged 4 commits into
mainfrom
claude/project-thread-bz0xrg
Nov 30, 2026
Merged

dknauss merged 4 commits into
mainfrom
claude/project-thread-bz0xrg

Conversation

@dknauss

@dknauss dknauss commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Requested by Dan · project thread

What

Annotations printed at the same size and color as their citation, so the note read as more of the reference. This gives them a default look that follows the usual annotated-bibliography convention (Chicago, MLA, APA):

  • a block of its own under the citation, lined up with the hanging indent's wrapped lines (unchanged; the existing structural rule already does this)
  • font-size: 0.9em
  • color: color-mix(in srgb, currentcolor 72%, transparent), which stays muted on light and dark backgrounds (about 7:1 for markup-value: real token counts and a citation-parser baseline #222 on white); browsers without color-mix() keep the text color
  • font-style: normal, roman, since italics in a bibliography mark titles

The new rule is :where(.wp-block-bibliography-builder-bibliography) .bibliography-builder-annotation, the same zero-specificity wrapper as the heading's centering (#277), so it is (0,1,0) and a theme's own .bibliography-builder-annotation rule wins without !important. The class is the same in the editor's annotation spans, and style.scss loads in the editor, so the editor matches.

Email output (includes/email-output.php) adds font-size:0.9em to the inline style; email clients can't mix colors, so the color is left alone.

Files

  • src/style.scss: the new rule
  • includes/email-output.php, tests/phpunit/AnnotationsTest.php: inline size for email
  • SPEC.md, CHANGELOG.md (Unreleased → Changed)

save() is unchanged, so no deprecation.

Testing

  • npm run build, npm run lint:css: pass
  • composer test:php -- tests/phpunit/AnnotationsTest.php: OK (9 tests)
  • Rendered before/after at 900px and 390px, light and dark, with the built stylesheet. Not checked in a live editor.

Generated by Claude Code

Annotations now print a step smaller (0.9em), in a muted color
(the text color at 72% via color-mix), in roman type, under the
citation's hanging indent, following the usual annotated-bibliography
convention. The rule sits under :where() like the heading's centering,
so themes override it with a single class. Email output gets the
smaller size inline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WPtgA3mvvkn8io7SnJ1CxT
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Plugin readme preview

Open preview · Commit d3c2ed7

37 passed · 0 warnings · 0 notes

Passed checks (37)
  • 145 / 150 characters in the short description.
  • Plugin name header recognized.
  • License header recognized: GPLv2 or later.
  • 5 tags accepted within the five-tag limit.
  • Description is within the parser’s word limit.
  • Installation is within the parser’s word limit.
  • Faq is within the parser’s word limit.
  • Changelog is within the parser’s word limit.
  • Tested up to 7.1, the latest WordPress major release.
  • Stable tag is declared: 1.22.0.
  • The PHP Version header is declared: 1.22.0.
  • Stable tag matches the PHP Version header: 1.22.0.
  • The readme “Requires at least” value is valid: 6.4.
  • The PHP “Requires at least” header is a numeric version: 6.4.
  • “Requires at least” matches between the readme and PHP header: 6.4.
  • The readme “Requires PHP” value is valid: 8.1.
  • The PHP “Requires PHP” header is a numeric version: 8.1.
  • “Requires PHP” matches between the readme and PHP header: 8.1.
  • “Tested up to” 7.1 meets the minimum WordPress version 6.4.
  • Installation content is present.
  • FAQ content is present.
  • Changelog content is present.
  • Screenshot captions are present.
  • The first changelog release matches Stable tag: 1.22.0.
  • The first changelog release matches PHP Version: 1.22.0.
  • Banner image loaded.
  • Plugin icon loaded.
  • Screenshot 1 has a matching image and caption.
  • Screenshot 2 has a matching image and caption.
  • Screenshot 3 has a matching image and caption.
  • Screenshot 4 has a matching image and caption.
  • Screenshot 5 has a matching image and caption.
  • Screenshot 6 has a matching image and caption.
  • Screenshot 7 has a matching image and caption.
  • Screenshot 8 has a matching image and caption.
  • Screenshot 9 has a matching image and caption.
  • Plugin PHP header loaded.

Readme and PHP-header checks only; this does not test plugin runtime compatibility.

@dknauss
dknauss marked this pull request as ready for review November 29, 2026 23:56
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-29T23:56:07.825716Z
We couldn’t complete this review. Comment @codex review to try again.
2cf55a2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.39%. Comparing base (978e650) to head (d3c2ed7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #322   +/-   ##
=========================================
  Coverage     87.39%   87.39%           
  Complexity       67       67           
=========================================
  Files           113      113           
  Lines         12760    12760           
  Branches       1341     1341           
=========================================
  Hits          11151    11151           
  Misses          489      489           
  Partials       1120     1120           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dknauss
dknauss merged commit eedff29 into main Nov 30, 2026
24 checks passed
@dknauss
dknauss deleted the claude/project-thread-bz0xrg branch November 30, 2026 00:04
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