WordPress / WordPress/create-block-theme
Prompt/message user about unsaved Global Styles changes before Saving
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
when clicking the "Save Changes" button in CBT panel any unsaved Global Styles changes are lost on reload - there is a prompt that changes will be lost but it is shown after the "Save Changes" action has already been performed.
Should we prompt the user to save changes via the editor first? Or make it more clear somehow that the editor has not yet been saved?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the CBT panel: make unsaved Global Styles changes, click "Save Changes," and observe when the loss warning appears. Clarify the intended prompt behavior, then verify that unsaved editor changes are not lost and that the warning appears before the save action completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100