Improve clarity of Layout Builder "Revert changes" confirmation form

Created on 3 June 2025, 2 days ago

Problem/Motivation

Content editors using Layout Builder's "Discard changes" button may not be clear what this action does, in comparison to the "Revert layout" button adjacent to it. Both actions include a confirmation step, but the confirmation text does not provide much clarification. For "Discard changes," the text reads "Are you sure you want to discard your layout changes?" while "Revert defaults" reads simply "Are you sure you want to revert this to defaults?"

Steps to reproduce

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

Update the text to read "Any changes made since the last saved layout will be removed. Are you sure you want to discard your layout changes?"

Remaining tasks

None.

User interface changes

Textual only.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

Feature request
Status

Active

Version

11.2 🔥

Component

layout_builder.module

Created by

🇺🇸United States mark_fullmer Tucson

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mark_fullmer
  • Pipeline finished with Failed
    2 days ago
    Total: 780s
    #513695
  • Pipeline finished with Success
    2 days ago
    Total: 1525s
    #513693
  • 🇺🇸United States mark_fullmer Tucson
  • 🇳🇿New Zealand quietone

    @mark_fullmer, thanks for the idea and the MR.

    In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies . Also mentioned on the version section of the list of issue fields documentation.

  • 🇳🇿New Zealand danielveza Brisbane, AU

    Good idea! Put in a suggestion.

    I think we should look at RevertOverridesForm too, that might be even more confusing than this one

  • 🇮🇳India libbna New Delhi, India

    Would it be appropriate to change the target branch of the existing merge request to 11.x (the default branch), or would you recommend creating a new branch from 11.x and applying the suggested changes there because I don't see any option to change the target branch?

    Please advise on the preferred approach to proceed in line with current contribution practices.

  • Pipeline finished with Canceled
    1 day ago
    Total: 136s
    #514534
  • Pipeline finished with Canceled
    1 day ago
    Total: 131s
    #514536
  • Pipeline finished with Canceled
    1 day ago
    Total: 175s
    #514535
  • 🇺🇸United States mark_fullmer Tucson

    In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed

    I've changed the target branch from 11.2.x to 11.x. Thanks!

  • 🇺🇸United States mark_fullmer Tucson
  • 🇺🇸United States mark_fullmer Tucson

    I think we should look at RevertOverridesForm too, that might be even more confusing than this one

    Agreed, although I'm not sure it's feasible to create a generic statement that accurately reflects what that action will do, given its variability based on site configuration. On one site, this might mean that the entity's Layout Builder sections will be reverted to a single, emtpy, one-column section. On others, "Revert layout" could restore the default sidebar content and order of the main content.

    Given this, I think that issue should be dealt with separately.

  • Pipeline finished with Success
    1 day ago
    Total: 571s
    #514538
  • Pipeline finished with Success
    1 day ago
    Total: 602s
    #514537
  • 🇳🇿New Zealand danielveza Brisbane, AU

    Opened 📌 Improve clarity of Layout Builder "Revert to defaults" confirmation form Active for the revert form. Agree we should handle it seperately.

    This is RTBC from me. I think its much better.

  • 🇮🇳India libbna New Delhi, India
Production build 0.71.5 2024