- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 10:23am 9 March 2023 - Status changed to Needs work
almost 2 years ago 7:52pm 9 March 2023 - ๐ฎ๐ชIreland markconroy
This looks like it is a bug, however we'll need to fix it in more than just Stable9. I think we need to fix it in:
- theme: starterkit_theme
- theme: stable
- theme: stable9
- theme: demo_umami > classy
- module: system
It's already fixed in Olivero and Claro (Claro issue: #3081563: When a form field's description is set to display before the input, it doesn't get the description classes โ )
The patch in #15 is the preferred approach. #16 has a space between the
div
and theexpression
(<div {{
instead of<div{{
. - Status changed to Needs review
almost 2 years ago 3:51am 10 March 2023 The last submitted patch, 19: 2700439-19.patch, failed testing. View results โ
The last submitted patch, 20: 2700439-20.patch, failed testing. View results โ
Removed the changes from the theme: demo_umami > classy as it is causing test failures.
- ๐ฎ๐ชIreland markconroy
@Rishabh Vishwakarma Thanks for working on this.
I wonder could you move the form-element.html.twig file from umami > classy directory to umami > templates > form directory (I think you'll need to create that directory).
I'm not sure if that will also break the tests, but it's worth trying. If that does break the tests, then we have another (perhaps bigger) issue for Umami if we can add new generic templates that have the same name as templates in the umami > classy directory.
Also, I think it's worth creating this patch against 10.1.x rather than 9.5.x
- Status changed to Needs work
almost 2 years ago 7:43pm 10 March 2023 - Status changed to Needs review
almost 2 years ago 4:57am 16 March 2023 - ๐ฎ๐ณIndia Aadhar_Gupta
Created the patch for drupal 10.1.x and also addressed the issue as stated in #24
- Status changed to Needs work
almost 2 years ago 9:32am 16 March 2023 - ๐ฎ๐ชIreland markconroy
+++ b/core/profiles/demo_umami/themes/umami/templates/form/form-element.html.twig @@ -0,0 +1,95 @@ + <div{{ description.attributes }}>
We need to add the description classes to this item. Once that's done, I think this is ready for RTBC.
- Status changed to Needs review
almost 2 years ago 4:30am 17 March 2023 - Status changed to RTBC
almost 2 years ago 1:56pm 17 March 2023 The last submitted patch, 28: 2700439-28.patch, failed testing. View results โ
- Status changed to Needs review
almost 2 years ago 9:31am 21 March 2023 - ๐ฎ๐ชIreland markconroy
Setting to 'needs review' to get the bots to test again.
- Status changed to RTBC
almost 2 years ago 12:04pm 21 March 2023 - Status changed to Needs work
almost 2 years ago 5:16pm 21 March 2023 - ๐จ๐ฆCanada star-szr
{% if description_display == 'before' and description.content %} - <div{{ description.attributes }}> +<div{{ description.attributes.addClass(description_classes) }}>
Why do we change the indentation like this, in multiple files? Earlier versions of the patch don't have this change. Please maintain the same indentation level.
- Status changed to Needs review
almost 2 years ago 7:31am 22 March 2023 - ๐ฎ๐ณIndia mrinalini9 New Delhi
Updated patch #28 by addressing #33, please review it.
Thanks!
- Status changed to RTBC
almost 2 years ago 12:51pm 22 March 2023 - Status changed to Needs work
almost 2 years ago 7:49am 28 March 2023 - ๐ซ๐ฎFinland lauriii Finland
-
+++ b/core/modules/system/templates/form-element.html.twig --- /dev/null +++ b/core/profiles/demo_umami/themes/umami/templates/form/form-element.html.twig
I think we should just move the template out from the Classy directory and then fix it. I don't think we want to have duplicate templates there.
-
+++ b/core/profiles/demo_umami/themes/umami/templates/form/form-element.html.twig --- a/core/themes/stable9/templates/form/form-element.html.twig +++ b/core/themes/stable9/templates/form/form-element.html.twig +++ b/core/themes/stable9/templates/form/form-element.html.twig @@ -70,7 +70,7 @@ - <div{{ description.attributes }}> + <div{{ description.attributes.addClass(description_classes) }}>
Seems fine as a bug fix for Stable ๐
-
- Status changed to Needs review
almost 2 years ago 11:43am 29 March 2023 - ๐ฎ๐ชIreland markconroy
Here's a patch that removes (renames) template from templates/classy/form to templates/form, and fixes the issue there so there's no duplicate template.
The last submitted patch, 37: 2700439-37.patch, failed testing. View results โ
- Status changed to Needs work
almost 2 years ago 3:05pm 29 March 2023 - ๐ฎ๐ชIreland markconroy
This has failed because the template was removed from the classy directory but I can't find the test to remove the template name from the list of classy templates - https://git.drupalcode.org/project/drupal/-/tree/10.1.x/core/tests/Drupa... (no test in here for ConfirmClassyCopiesTest)
- Status changed to Needs review
almost 2 years ago 3:20pm 29 March 2023 - ๐ซ๐ฎFinland lauriii Finland
It exists in 9.5.x: https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/tests/Drupal.... I sent the patch to be re-tested in 10.1.x.
- ๐ฎ๐ณIndia arunkumark Coimbatore
Reviewed the patch manually and the fixes are working as expected. Attached screenshot for reference.
Before patch applied:
After Patch applied:
The patch can be move for RTBC.
- Status changed to RTBC
almost 2 years ago 9:46am 30 March 2023 The last submitted patch, 37: 2700439-37.patch, failed testing. View results โ
- ๐ฎ๐ชIreland markconroy
Not sure why the bots reset this, moving back to RTBC
The last submitted patch, 37: 2700439-37.patch, failed testing. View results โ
- ๐บ๐ธUnited States rpayanm
I am told that they've had a random test failure explosion the past few days.
The last submitted patch, 37: 2700439-37.patch, failed testing. View results โ
- ๐ฎ๐ชIreland markconroy
I think it's because of the 9.5 tests failing. Hopefully we'll get this committed soon and not need to keep resetting it.
- Status changed to Needs work
almost 2 years ago 12:09am 4 April 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
The patch is failing in 9.5 with what looks like a relevant failure from this issue.
If this should be applied to 9.5, we need a 9.5 patch too.
Thanks folks
- Status changed to Needs review
almost 2 years ago 6:41am 4 April 2023 - ๐ฎ๐ณIndia Vidushi Mehta
#37 was applying on 9.5.x after the latest pull, adding a patch for 9.5.x for the same.
- Status changed to Needs work
almost 2 years ago 1:48pm 4 April 2023 - ๐บ๐ธUnited States smustgrave
Umami has that template already. Under templates/classy.
- Status changed to Needs review
almost 2 years ago 7:01pm 4 April 2023 - ๐ฎ๐ชIreland markconroy
@larowlan and @lauriii I'm not fully sure how to fix this for 9.5.x
If we leave the template for
form-element.html.twig
inside umami/templates/classy then we have a duplicate template (like we have in #52 and #23 (we're starting to go around in circles).
If we move it from there (like in the patch I am attaching to this, the test for classy templates will fail unless we removeform-element.html.twig
from theConfigClassyCopiesTest
test. I have removed that in this test, but now it will mean that all other themes in 9.5 that have a classy folder will fail, since they will have aform-element.html.twig
file which the test says they should not have.My proposal: commit my patch from #37 so we have D10 fixed and either figure out how to solve it for D9, or don't worry about it as D9 is EOL in November.
There's no interdiff with this patch, as it's purely for 9.5 instead of D10 which #37 solves.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Thanks @markconroy - I'll defer to @lauriii in his FEFM capacity w.r.t what his preference would be
- Status changed to Needs work
almost 2 years ago 7:52am 7 April 2023 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- ๐ซ๐ฎFinland lauriii Finland
This seems like a good fix for Stable and Classy, but since we are adding additional classes for some use cases, it may have an impact on existing themes. Because of the changes to Classy and Stable, I think we may want to err on the side of caution and refrain from backporting to 10.0.x and 9.5.x.
- last update
over 1 year ago Patch Failed to Apply unable to reproduce due to missing steps. tried patch applied successfully not tested yet.
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
liam morland โ made their first commit to this issueโs fork.
- Merge request !9898Issue #2700439: Add missing description class to form-element.html.twig template โ (Open) created by Liam Morland
- ๐บ๐ธUnited States smustgrave
Shouldn't remove a tag without saying why.
But since the entire issue summary needs updating (steps to reproduce included) I've added that tag.
Twig template change will require a CR as well.
Thanks.
- ๐ฎ๐ณIndia arunkumark Coimbatore
Created the Draft Change record for the issue. Feel free to edit the description. The screenshot needs to be updated.
Change Record: https://www.drupal.org/node/3482370 โ
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
I have updated the change record.
- ๐บ๐ธUnited States smustgrave
I'd recommend removing the part about this applies to the core templates and themes. Purpose of the CR is to announce a change that other themes may won't to adapt if they have overridden or included in their base theme.
Would also recommend a simple before/after snippet of the change and maybe mention the classes that will now be applied.
- Status changed to RTBC
7 days ago 4:05pm 15 January 2025