WordPress / WordPress/create-block-theme

Prompt/message user about unsaved Global Styles changes before Saving

Open
#565 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.