Skip to content

Address a handful of open QA issues#17

Merged
jeremyfelt merged 13 commits into
trunkfrom
task/add-some-things
Nov 12, 2025
Merged

Address a handful of open QA issues#17
jeremyfelt merged 13 commits into
trunkfrom
task/add-some-things

Conversation

@jeremyfelt
Copy link
Copy Markdown
Member

No description provided.

jeremyfelt and others added 13 commits November 6, 2025 08:50
Themes can now register images with max_width and max_height properties. These values are applied as inline styles to the img or svg elements when rendering the block, providing better control over maximum image dimensions.

Fixes #12

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Block now includes a style.css file that applies max-width: 100% and height: auto to img and svg elements within the block, ensuring responsive behavior by default.

Fixes #13

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Images can now be registered with a default caption, and blocks support a caption attribute that renders as a figcaption element. The editor includes a RichText component for inline caption editing.

Fixes #14

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Block now supports alignment (left, center, right, wide, full) matching the core image block behavior. WordPress automatically handles alignment controls and classes through the align support declaration.

Fixes #15

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Block now supports text and background color controls. Colors are applied to the figure element, allowing SVGs to inherit colors via currentColor and providing a background for the entire block.

Fixes #16

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Caption changes:
- Add showCaption toggle to control caption display
- Caption only renders when toggle is enabled
- Registered caption appears as placeholder in editor
- Caption can be overridden in the editor

Alt text changes:
- Add altText field to override registered alt text
- Registered alt text appears as placeholder
- Add omitAltText toggle to force empty alt text
- Alt text determination: omit toggle > custom alt > registered alt

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Reordered controls so the "Omit alt text" toggle appears first, and conditionally hide the Alt Text input field when the toggle is enabled for a cleaner interface.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Enable padding controls through block supports API. Padding is applied to the figure wrapper element and can be configured independently for all sides.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Move display caption toggle above alt text section to improve visibility of commonly used feature. Move omit alt text toggle below the alt text field to reduce likelihood of accidental use.

Control order is now:
1. Display caption
2. Alt Text field
3. Omit alt text

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Move the caption display toggle from the sidebar to the block toolbar to match the UX pattern of the core image block. Uses the caption icon and appears alongside link controls.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Import and use the caption icon from @wordpress/icons instead of using the dashicon string, matching the core image block's implementation with proper SVG rendering.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Rename imported caption icon to captionIcon to avoid conflict with the caption attribute variable, ensuring the SVG icon renders correctly in the toolbar.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Allow bold, italic, and link formatting in caption text to match core image block functionality. When caption text is selected, a formatting toolbar appears with these options.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@jeremyfelt jeremyfelt merged commit b616bc7 into trunk Nov 12, 2025
5 checks passed
@jeremyfelt jeremyfelt deleted the task/add-some-things branch November 12, 2025 18:03
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.

1 participant