Problem/Motivation

Currently claro_preprocess_field_multiple_value_form() assumes the table header structure created by template_preprocess_field_multiple_value_form(). But other extensions may change the structure of it (e.g. by adding sub-items in that particular cell). , The Paragraphs module e.g. does this for its action buttons in the table header. This has been no problem yet, because its preprocess hook was last in line, due to the fact, that the other core themes did not implement one on their own.

With Claro as the new admin theme though, this acts on top of the changes the Paragraphs module makes and reverts it back to the "default" structure for adding its custom CSS class on the field label.

Proposed resolution

  • Fix the issue in the following places:
    • template_preprocess_field_multiple_value_form(). Convert the title to a html_tag #type
    • claro_preprocess_field_multiple_value_form()
    • Make appropriate changes to Claro's CSS to ensure consistency and BC

Remaining tasks

Review

User interface changes

n/a

API changes

  • A potentially new variable structure for the table header cell, if a solution is chosen that changes the structure on core level

Data model changes

n/a

Release notes snippet

n/a

CommentFileSizeAuthor
#60 3099026-60-9.5.x.patch3.96 KBmherchel
#59 interdiff-51-59.txt918 bytesmherchel
#59 3099026-59.patch3.98 KBmherchel
#57 Screen Shot 2023-03-07 at 8.16.25 PM.png73.98 KBsmustgrave
#57 Screen Shot 2023-03-07 at 8.15.57 PM.png68.91 KBsmustgrave
#51 interdiff-48-51.txt527 bytesmherchel
#51 3099026-51.patch4.04 KBmherchel
#49 3099026-nr-bot.txt1.99 KBneeds-review-queue-bot
#48 interdiff-42-48.txt2.21 KBmherchel
#48 3099026-48.patch4.09 KBmherchel
#42 interdiff_41-42.txt1016 bytespradhumanjain2311
#42 3099026-42.patch3.9 KBpradhumanjain2311
#41 reroll_diff_32-41.txt2.21 KBravi.shankar
#41 3099026-41.patch3.98 KBravi.shankar
#37 Selection_999(701).png10.37 KBgilmord
#37 Selection_999(702).png8.79 KBgilmord
#35 Screenshot 2022-05-03 at 11.16.15.png155.43 KBstefank
#32 3099026-32--show-order.png6.61 KBtimohuisman
#32 3099026-32--hide-order.png8.79 KBtimohuisman
#32 3099026-32.patch3.96 KBtimohuisman
#19 interdiff.txt1.26 KBlauriii
#19 3099026-17.patch2.66 KBlauriii
#13 interdiff.txt1.11 KBlauriii
#13 3099026-13.patch2.49 KBlauriii
#10 Screen Shot 2020-03-25 at 6.16.09 PM.png49.38 KBjwilson3
#10 Screen Shot 2020-03-25 at 6.16.21 PM.png46.24 KBjwilson3
#10 Screen Shot 2020-03-25 at 6.19.37 PM.png39.94 KBjwilson3
#10 Screen Shot 2020-03-25 at 6.13.41 PM.png68.6 KBjwilson3
#10 Screen Shot 2020-03-25 at 6.14.42 PM.png49.9 KBjwilson3
#10 Screen Shot 2020-03-25 at 6.14.56 PM.png52.66 KBjwilson3
#9 3099026-9.patch2.35 KBbartlangelaan
#8 3099026-8.patch2.32 KBbartlangelaan
#4 3099026-4.patch1.32 KBhctom

Comments

hctom created an issue. See original summary.

hctom’s picture

hctom’s picture

Thinking more about it, I'd say the fix/preparation for this has to be done in core.

template_preprocess_field_multiple_value_form() should be changed like this:

$header = [
  [
    'data' => [
      'field_label' => [
        '#prefix' => '<h4' . $header_attributes . '>',
        '#markup' => $element['#title'],
        '#suffix' => '</h4>',
      ],
    ],
    'colspan' => 2,
    'class' => ['field-label'],
  ],
  t('Order', [], ['context' => 'Sort order']),
];

With this approach by adding the field_label key (or whatever it should be named) allows others to target that specific output structure. Claro then may act on it in claro_preprocess_field_multiple_value_form() like this:

$variables['table']['#header'][0]['data']['field_label'] = [
  '#type' => 'html_tag',
  '#tag' => 'h4',
  '#value' => $variables['element']['#title'],
  '#attributes' => $header_attributes,
];

...and Paragraphs may add its buttons in paragraphs_preprocess_field_multiple_value_form() without completely rewriting the structure via:

$variables['table']['#header'][0]['data']['button'] = [
  // Whatever paragraphs module has to do here...
];

What do you think? If this is the way to go, I'd love to provide a patch for these changes.

hctom’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Here is a patch that changes the initial table header structure by using a field_label key for the field label part of the header cell. Claro's claro_preprocess_field_multiple_value_form() also gets adjusted for that.

Let's see what happens ;)

taiger’s picture

Hey I tried that patch in #4 but the issue persists.

A little extra css fixes it for me:

.js .dropbutton-multiple .dropbutton {
  overflow: hidden;
}

.js .dropbutton-multiple.open .dropbutton {
  overflow: visible;
}

.js .dropbutton-multiple .dropbutton .button{
  margin: inherit;
  width: 100%;
  text-align: left;
  padding-left: 0.3em;
  padding-right: 60px;
}

Edit: this is for a different issue.

hctom’s picture

@Taiger, is it possible that you added your comment to the wrong issue? ;) I see no CSS issues here so far... and the patch in #4 does only "solve" the actual problem by changing the structure of the cell data, so it is easier to alter/extend.

taiger’s picture

Yes, you are right @hctom. The issue I am seeing is that dropbutton multiple is visually broken on Claro. I will create a new issue and a patch.

bartlangelaan’s picture

StatusFileSize
new2.32 KB

I have applied the patch from #4, but when testing this with the Paragraphs module it showed a new bug: the title was duplicated. This is because Claro expects there to be a field_label, while the paragraphs module actually moves that key to another place. This means that the title is now both in the place that Paragraphs moves it to, and in the re-definition done by Claro.

I think a better approach is moving the repeated logic from Claro to core. This means that the improvements in structure already built in Claro (so it's easier to extend attributes in a table header) are implemented in core, and Claro only has to extend the attributes.

This doesn't involve a new (nested) variable structure, which should limit the adjustments needed by contrib modules (if any).

Patch is attached.

bartlangelaan’s picture

StatusFileSize
new2.35 KB

Oops, created the patch on the core subtree split instead of the drupal git. This is the same patch with a different root.

jwilson3’s picture

  1. Code in #9 looks solid, and works as expected.
  2. There are no functional regressions visible when using the Seven theme, which is great.

    Before:

    After:

  3. However the layout in Claro doesn't look so swell, when someone (eg paragraphs) adds more items to the header.

    Before:

    After:

    The reason is that Classy theme has a CSS rule, that affects the layout of the <h4 class="label"> inside the table header:

    // Classy's form.css file
    .form-composite > legend, .label {
      display: inline;
       ...
    }
    

    But Claro uses its own .form-item__label class on the h4 instead of the "label" class. And the analogous CSS snippet for the display is different:

    // Claro's form.css file
    .form-item__label {
      display: table;
      ...
    }
    

    What's more is that Paragraphs module is overriding that class and setting it back to label, however this has no effect because even though Claro's base theme is Classy, it overrides and disables the form.css from classy/base library.

In conclusion, I think that making any additional modifications regarding point 3 is out of scope of this issue. The visual aberrations pointed out in 3 only happen with contrib module. Core by itself is unaffected. Possibly, yes, a follow-up core issue could be filed to restore the expected inline display style for form labels, but an issue like that might not make it anywhere quickly. Instead, I think the responsibility of fixing the table header layout issues lies with the Paragraphs module in a patch on the related contrib issue #3099024: Paragraphs actions button are removed when Claro admin theme is used.

Thanks @hctom for your work identifying the original issue from Paragraphs, for filing the core issue with patch!, and @bartlangelaan for improving the patch.

RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: 3099026-9.patch, failed testing. View results

lauriii’s picture

Status: Needs work » Reviewed & tested by the community

Seems like unrelated random failure

lauriii’s picture

Version: 8.8.x-dev » 8.9.x-dev
Status: Reviewed & tested by the community » Needs work
Related issues: +#3131221: Multiple value field form label rendered incorrectly on Claro
StatusFileSize
new2.49 KB
new1.11 KB

I discussed with @alexpott about backporting this to 8.8.x. He recommended not backporting this to 8.8.x because this imposes some risk on contrib modules. I did some research in the contrib environment and it seems like there's another module that is making similar alterations with Claro. Committing this wouldn't directly break the module, but it will remain incompatible with Claro until they've made some changes.

I made some minor documentation improvements to the patch.

+++ b/core/themes/claro/claro.theme
@@ -797,26 +797,15 @@ function claro_preprocess_field_multiple_value_form(&$variables) {
-    $header_attributes = ['class' => ['form-item__label', 'form-item__label--multiple-value-form']];
...
+    $variables['table']['#header'][0]['data']['#attributes']['class'][] = 'form-item__label';

Now that we're not overriding the attributes, the label class added by template_preprocess_field_multiple_value_form function is now rendered in Claro. I think we should remove that to make sure this doesn't have any impact to what is rendered in the UI.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

lukus’s picture

I saw this issue initially through use of paragraphs - some of the head actions had been incorrectly removed.

Patch #13 works well to rectify.

nicolas s.’s picture

Patch #13 works for me, button Edit All / Collapse All is now visible

lauriii’s picture

Status: Needs work » Needs review
Related issues: -#3164979: Paragraphs: Missing "collapse all" / "edit all" buttons
StatusFileSize
new2.66 KB
new1.26 KB

Addressed #13.

saschaeggi’s picture

Works for me on 8.9.x

bnjmnm’s picture

Status: Needs review » Needs work

I found two modules with evidence of current usage that have a preprocess_field_multiple_value_form that effectively undoes the change this patch makes to theme.inc

https://www.drupal.org/project/paragraphs_sets | usage: http://grep.xnddx.ru/node/30426268
https://www.drupal.org/project/require_on_publish | usage http://grep.xnddx.ru/node/30435042

It would be good to either

  • add issues to those module's queue informing them of the change to core and that it will only be apparent in Claro
  • provide a fallback that performs a find/replace on #prefix
  • An explanation as to why it's acceptable to not have the class changes in claro_preprocess_field_multiple_value_form apply in instances where those modules are installed.

I believe the patch is good to go other than that.

hctom’s picture

I just looked through the changes in the new patches apart from my initial patch in #4. As we are changing the structure here and contrib modules like paragraphs or the ones stated in #21 definitely have to react on those changes, why don't we group the new render array structure under a dedicated array key as I did in my first path in #4?

With the current proposed solution, contrib modules still have to "hack" that column by either prefixing/suffixing the actual <h4> element to add custom stuff. It would be way cleaner to have the <h4> element for the title in a self-contained render array item, so new items may be added or the title even removed completely.

Of course this may lead to problems with duplicate output right now (as said in #8 with paragraphs module), but the contrib modules will have to react on this change anyway, so they may also be faced with a better render array structure that is easier to customize. If we don't do it that way, we don't solve the problem here, we only change the actual problem.

Of course there has to be a change record for this change then...

What do you think?

bnjmnm’s picture

Re #22:

As we are changing the structure here and contrib modules like paragraphs or the ones stated in #21 definitely have to react on those changes, why don't we group the new render array structure under a dedicated array key as I did in my first path in #4

#8 points out that this results in duplicating the title in his setup. This would also happen with the modules mentioned in #21. It is true these module undo the fix in #19, they would also undo the fix with patch #4 AND the title would be duplicated.

What modules in #21 are doing this is completely unnecessary and inefficient since they duplicate (literally pasted) steps from template_preprocess_field_multiple_value_form(). It's not an ideal approach, but these modules are have enough usage to justify alerting them of this change (particularly paragraphs_sets, which is already D9 compatible).

hctom’s picture

Yes they duplicate the code, because they are forced to do so currently - there is no other way to add attributes without duplicating that code. That's one of the reasons why I opened up this issue.

The current proposed solution (changing the element to a pure render array approach) helps a little, but with title's render array structure still at the root of the cell's data array, contrib modules, themers etc. will continue to be be forced to "hack" their changes into the cell when not only wanting to add/change an attribute.

Paragraphs module is a really good example for this: It rewrites the cell's data array structure, so the title added by core is found under title key and the module's own buttons are added under the new button key.

$variables['table']['#header'][0]['data'] = [
  'title' => $variables['table']['#header'][0]['data'],
  'button' => $variables['table']['#rows'][0]['data'][1]['data'],
];

My question right now is, why we do not provide the title under a dedicated key right from the beginning in core. All other modules/themes would then be able to add any number of new elements to the data array, without having to juggle around the initial structure or at worst have to pre-render their custom markup to add it to #prefix / #suffix of the actual title's render array structure.

Of course this will have duplicate titles here and there, but it is an easy fix for the contrib modules and that's what change records are for: To inform about changes that may need work on the contrib/custom side.

rdeboer’s picture

Just to say that for those on D8.9.x the patch from comment #9 is still working very nicely for me, today 12 Sep 2020.

In fact the patch works great in combo with another paragraph/Claro D8.9.x patch at comment #89 in this issue: https://www.drupal.org/project/drupal/issues/3092181

Together these 2 patches solve all my Claro+paragraphs troubles in D8.9.x !

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

johan den hollander’s picture

Also here to confirm the #9 patch still applies to 8.9.11 and fixes the missing paragraphs dropdown for me which is needed for the drag and drop functionality.

bnjmnm’s picture

Re #24

Of course this will have duplicate titles here and there, but it is an easy fix for the contrib modules and that's what change records are for: To inform about changes that may need work on the contrib/custom side.

I've seen committers reject patches with BC-breaking changes far less severe than what could happen here, it's unlikely the currently solution would be accepted into core. It doesn't really meet the "We will take reasonable efforts to not break code that developers may be relying on." part of Drupal's Backwards Compatibility Policy, particularity since it's a solution for a Claro-specific problem that impacts all sites regardless of the themes in use. I think there are untapped "reasonable efforts" that can provide a backwards compatible version of this solution.

I have some suggested alternate approaches. None of them are ideal, but preferable to a BC break, and 2/3 of them are specific to Claro - the only theme that requires this change. Someone may be able to figure out a way to do one of these more cleanly.

  • The ideal approach is to provide a backwards-compatible layer so sites relying on the previous approach are not disrupted, but are presented with a deprecation notice that the old implementation will be removed in Drupal 10. I'm not sure this is possible with a preprocess function.
  • +++ b/core/themes/claro/claro.theme
    @@ -797,26 +797,15 @@ function claro_preprocess_field_multiple_value_form(&$variables) {
    + $variables['table']['#header'][0]['data']['#attributes']['class'][] = 'form-item__label';
    + $variables['table']['#header'][0]['data']['#attributes']['class'][] = 'form-item__label--multiple-value-form';

    This problem is happening because Claro is adding/removing few presentation-changing classes from the header of a multivalue form. This class addition/removal logic could be removed from claro_preprocess_field_multiple_value_form altogether, and the styles could be applied via different selectors. If it deviates from Claro's conventions a comment could explain why this is preferable to a BC break.

  • It may seem overkill, but Symfony's DomCrawler could parse the #prefix similar to JS and add/remove the classes as needed. Similar to the previous option, this would need a comment explaining why this seemingly excessive approach was needed to protect backwards compatibility.

I agree that this should have been implemented differently in the first place, and it's not pleasant to support BC for a non-ideal implementation. However, it's hard to justify BC breaks unless it's clear all options have been exhausted, and I think some options (however odd) still exist.

hctom’s picture

@bnjmnm: Thanks for your detailed feedback. I'm totally with you regarding the BC issues with my initial approach, but I still worry that the current solution from #19 will not finally fix the actual issue and there may be similar issues in the future with other modules trying to change the header.

So here are my two cents to your suggested approaches:

  • Provide a BC layer is quite impossible, I guess. If you want to implement something for that, it would have to check the render array if the structure provided by template_preprocess_field_multiple_value_form() has been changed drastically somewhere in between which sound a little impossible. Especially because some other module/theme might even change the order of preprocess hooks being fired
  • Adding those Claro-specific classes is totally okay IMHO - that's what attribute objects are for and also the classes themselves are needed for the BEM approach of styling this element
  • Symfony's DOM crawler is definitely no reasonable solution to this problem and will arise even more issues in the future

I still advocate to change the actual render array structure by moving the heading under a dedicated array key and provide a change record for that. In my opinion that is the only way to really solve this issue forever.

While core developers may change implementation detail code between minor versions when it is necessary to make an improvement, we will make a reasonable effort to minimize these changes.

I guess with this, we actually have a case, where implementation detail code has to be changed to make a real improvement...

saschaeggi’s picture

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

timohuisman’s picture

StatusFileSize
new3.96 KB
new8.79 KB
new6.61 KB

This is probably not the right solution, but it works in our situation. I've used the patch from #17 and added a few lines of css to make it work with the paragraph module.

.

.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

jwineichen’s picture

#32 patch worked for me as well (with the specific goal of getting the paragraphs actions links to appear)

stefank’s picture

StatusFileSize
new155.43 KB

Hi @timohuisman,

Thanks for the patch. I can confirm #32 works as expected. I was wondering, if a paragraph has a sub-paragraph if that should be expended as well.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gilmord’s picture

StatusFileSize
new8.79 KB
new10.37 KB

wrong issue, removed my comment

robcarr’s picture

Patch at #32 worked for me to solve problems with Paragraphs Table module

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

ericdsd’s picture

Hi, Patch #32 worked for me over core 9.4.7.

ravi.shankar’s picture

StatusFileSize
new3.98 KB
new2.21 KB

Added reroll of patch #32 on Drupal 10.1.x.

pradhumanjain2311’s picture

Status: Needs work » Needs review
StatusFileSize
new3.9 KB
new1016 bytes

Try to fix yarn run errors.

robcarr’s picture

+1 for RTBC on patch #42

maskedjellybean’s picture

Patch #42 works great for me, thanks!

I agree with the comment in #10 that the height of the table header should be shorter. The H4 on the left and the buttons/options on the right do not need to be stacked vertically. One possible solution with the current markup (at least on a Paragraph field) would be .field-multiple-table thead label { display: inline-block; }.

tcrawford’s picture

Patch #42 works great for me, also (tested 9.4.x). Thank you very much.

tcrawford’s picture

Status: Needs review » Reviewed & tested by the community

Moving to RTBC due to the positive feedback.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/themes/claro/claro.theme
    @@ -908,27 +908,13 @@ function claro_preprocess_field_multiple_value_form(&$variables) {
    +    if (isset($variables['table']['#header'][0]['data']['#attributes']) && $variables['table']['#header'][0]['data']['#attributes'] instanceof Attribute) {
    

    We could technically add support for array type of attributes too if that increases the chances of this working

  2. +++ b/core/themes/claro/css/components/form.pcss.css
    @@ -37,9 +37,12 @@ tr .form-item,
    +.field-multiple-table .field-label h4.label {
    

    Can we add comment explaining that this is to try to keep the styles working even when there are modules overriding the markup

  3. A small CR that warns about the render array changes would probably be useful since we know that there are some themes that would be impacted by this.
mherchel’s picture

Status: Needs work » Needs review
StatusFileSize
new4.09 KB
new2.21 KB

Patch updated per #47. Creating CR shortly.

Note that I also tried to make the CSS a bit more resilient, but in doing so, it negatively impacts Paragraph's CSS. So, IMO the current CSS is correct because of BC.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new1.99 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

mherchel’s picture

CR created at https://www.drupal.org/node/3344342. Please double check this, I'm not entirely positive that what I wrote is 100% correct.

mherchel’s picture

Status: Needs work » Needs review
StatusFileSize
new4.04 KB
new527 bytes
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

Could the Issue summary be updated some? The proposed solution mentions there needs to be discussion. If a decision has already been made can it be documented there please.

Thanks!

mherchel’s picture

Status: Needs work » Needs review
Issue tags: +Needs issue summary update

Agree. Adding the "Needs issue summary update" tag.

Note that since the patch has been created and still needs review, I'm setting this back to "Needs Review". Please see the documentation at https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-...

"Needs work" is only for:

There is a patch attached to the issue, but the patch needs additional work before it should be reviewed. The author of the patch may indicate that it is incomplete, or the patch has gone through the reviewing process and has received feedback about areas where it needs improvement.

smustgrave’s picture

Will leave in review but if the proposed solution isn't clear any reviewer can't review the patch to see if the approach being proposed is being followed.

smustgrave’s picture

Status: Needs review » Needs work

Since it's been about a week moving back to NW as the issue summary does need to be updated.

Don't want it to rot away in the review queue.

mherchel’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new68.91 KB
new73.98 KB

Actually turned into a great improvement for paragraphs

Tested by installing paragraphs and making a dummy bundle with just a simple boolean field

Without the patch. I can't drag and drop the header

before

With the patch I can!

after

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/claro/claro.theme
@@ -993,27 +993,13 @@ function claro_preprocess_field_multiple_value_form(&$variables) {
+    if (isset($variables['table']['#header'][0]['data']['#attributes']) && $variables['table']['#header'][0]['data']['#attributes']) {

Isn't the isset check here sufficient?

What I was thinking of doing here originally was something like:

// Convert #attributes to \Drupal\Core\Template\Attribute object to allow
// using its utilities for modifying the attributes.
if (!($variables['table']['#header'][0]['data']['#attributes'] instanceof Attribute)) {
  $variables['table']['#header'][0]['data']['#attributes'] = new Attribute($variables['table']['#header'][0]['data']['#attributes']);
}

However, I'm not certain we need to because it looks like we have other instances where we are already assuming that #attributes are instances of \Drupal\Core\Template\Attribute. Because of this, it's probably fine to just remove the second second condition from here.

mherchel’s picture

Status: Needs work » Needs review
StatusFileSize
new3.98 KB
new918 bytes

Removed the second condition per #58. Patch interdiff attached. Thanks!

mherchel’s picture

StatusFileSize
new3.96 KB

Attached is the same patch as above but for 9.5.x.

IMO this bug is a major usability issue when paired with the popular Paragraphs module (which is why I'm working on this), and should be ported to 9.5.x.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Get the same results still using #59 so marking it again.

And agree with the comment made in #60 that this makes paragraphs better as it shows a feature that I actually didn't know existed.

  • lauriii committed 90897afe on 10.1.x
    Issue #3099026 by mherchel, lauriii, bartlangelaan, timohuisman,...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

We are allowed to change the render arrays in minor releases based on https://www.drupal.org/about/core/policies/core-change-policies/frontend... so we don't have to implement a BC layer for this. However, we cannot backport this to 9.5.x because of the potential BC concerns.

Committed 90897af and pushed to 10.1.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.