Improve clarity of Layout Builder "Revert to defaults" confirmation form

Created on 4 June 2025, 2 days ago

Problem/Motivation

Spun off from Improve clarity of Layout Builder "Revert changes" confirmation form Active .

While we are looking at the language on these forms, I think we should look at the "Revert to defaults" confirmation form too. It currently reads "Are you sure you want to revert this to defaults?"

People with enough Layout Builder experience will understand what this means, but I don't think its clear for content editors.

Steps to reproduce

Poached from Improve clarity of Layout Builder "Revert changes" confirmation form Active

1. Use the "Discard changes" button in the Layout Builder interface.
2. See the text of the confirmation dialog.
3. Scratch your head in perplexity.

Proposed resolution

Something along the lines of...

This layout will be reverted to the default layout, any custom overrides will be lost. Are you sure you want to continue?

Remaining tasks

Decide on approach
Merge

User interface changes

Text in the Revert layout confirmation form will change

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

layout_builder.module

Created by

🇳🇿New Zealand danielveza Brisbane, AU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @danielveza
  • First commit to issue fork.
  • 🇮🇳India libbna New Delhi, India
  • Merge request !12314updated the question text. → (Open) created by libbna
  • 🇮🇳India libbna New Delhi, India

    I have replaced the revert confirmation text Are you sure you want to revert this to defaults? with This layout will be reverted to the default layout, any custom overrides will be lost. Are you sure you want to continue?. However, in my opinion, this message may be a bit too long. As noted in one of the comments on https://www.drupal.org/project/drupal/issues/3528251 Improve clarity of Layout Builder "Revert changes" confirmation form Active , and to maintain consistency, could we consider using the existing message Any unsaved changes to the layout will be lost. This action cannot be undone. instead?

  • 🇮🇳India libbna New Delhi, India
  • Pipeline finished with Success
    1 day ago
    Total: 647s
    #514882
  • 🇳🇿New Zealand danielveza Brisbane, AU

    could we consider using the existing message Any unsaved changes to the layout will be lost. This action cannot be undone. instead?

    In the Revert form, this message wouldn't be accurate. Changes to the layout have already been saved.

    Reverting to default is more desctructive (but can be restored by reverting to a past revision) than discarding changes (Which is just clearning the tempstore), so I think a more verbose message makes sense here.

Production build 0.71.5 2024