Repository navigation
Image block: Add "Mark as decorative" toggle for accessibility #78064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
t-hamano
merged 20 commits into
WordPress:trunk
from
SteveJonesDev:add/image-block-decorative-toggle
May 19, 2026
Merged
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a71f03c
Image block: Add 'Mark as decorative' toggle
SteveJonesDev 57eadef
Image block: Update alt text handling for decorative images
SteveJonesDev aa70418
Image block: Set default value for 'isDecorative' attribute in ImageEdit
SteveJonesDev e1459cd
Image block: Add 'isDecorative' attribute to core/image block attributes
SteveJonesDev 16a68da
Add: confirmation dialog for marking images as decorative
SteveJonesDev 5aeb643
Merge branch 'trunk' into add/image-block-decorative-toggle
SteveJonesDev 6e6978f
Merge branch 'trunk' into add/image-block-decorative-toggle
SteveJonesDev 074c30b
Image block: Hide caption when in read-only mode and empty
SteveJonesDev e0848a9
Image block: Set default value for 'isDecorative' attribute to false
SteveJonesDev ede7a94
Image block: Set 'isDecorative' attribute to false when enabling ligh…
SteveJonesDev 1d14bb3
Image block: Remove default 'isDecorative' attribute setting in Image…
SteveJonesDev 4df01e2
Image block: Add 'isDecorative' attribute with default value false to…
SteveJonesDev b21abad
Image block: Conditionally render alternative text input based on 'is…
SteveJonesDev 4521859
Image block: Remove 'isDecorative' parameter from getAltHelp function…
SteveJonesDev 8d9d315
Image block: handle caption logic in the image block. Revert changes …
SteveJonesDev 57343e0
Image block: Replace ToggleControl with CheckboxControl for decorativ…
SteveJonesDev 264fb68
Image block: Add 'isDecorative' field to inspector controls and updat…
SteveJonesDev f6d7341
Image block: Simplify decorative image handling by removing confirmat…
SteveJonesDev feaf9a2
Image block: Remoded getAltHelp and inlined the ternary directly into…
SteveJonesDev 283e469
Image block: Restored the fragment wrapper is back to match the origi…
SteveJonesDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.