Address a handful of open QA issues#17
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.