Editor: Clarify the site-wide impact of 'Apply Globally'#79436
Conversation
…ning and clearer save modal - Add persistent info notice in block inspector after "Apply Globally" is clicked - Notice displays: "These styles will apply to all [Block] blocks across the site when you save." - Wire notice to actual Global Styles dirty state to auto-clear after save/undo - Simplify entity record item display for global styles (no custom labels or duplicate bullets) - Improve save modal with clearer phrasing: "This will update site-wide styles for:" - Use standard WordPress Notice component with status="info" for restrained visual treatment - Maintain minimal CSS styling (16px margin only, no custom colors)
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @hohoho-agency. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
- open a confirmation modal when "Apply globally" is clicked - apply changes only after explicit confirmation - remove prior persistent info-notice flow - remove prior save-modal text "This will update site-wide styles for:"
|
@yyppsk Thanks for the PR! I found that #79839 allows users to select the style they want to apply within a modal. I believe it would be ideal to proceed with #79839. cc @aaronrobertshaw I'd like to close this PR, but thanks for your effort! |
Sure thing! Thanks for the update. |
What?
Closes #79343.
This PR updates the
Apply globallyflow to use a confirmation modal before applying block styles site-wide.Why?
Applying styles globally has a broad impact, so users should explicitly confirm this action at the moment they trigger it. This approach makes the site-wide consequences clearer while avoiding redundant messaging later in the save flow.
How?
Apply globallyis clicked.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before:
Apply globallyrelied on the existing save flow without an upfront confirmation step.Screen.Recording.2026-06-24.at.1.41.40.AM.mov
After
Apply globallyopens a confirmation modal before applying site-wide changes.Use of AI Tools
Used GitHub Copilot to help refine the implementation, copy, and PR description.