Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
Umami demo
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2018 at 14:12 UTC
Updated:
14 Sep 2023 at 00:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzookaWhoops, wrong version.
Comment #3
huzookaNo changes needed for core-provided themes as I see.
Comment #4
huzookaComment #5
huzookaComment #6
govind.maloo commentedThanks @huzooka for the patch.
Patch applied successfully and now I can see templates without strong element.
Govind
Comment #7
govind.maloo commentedComment #8
lauriiiWe need a change record for this change.
Comment #9
huzookaComment #10
lauriiiComment #11
averagejoe3000Updated and still works with 8.7.x
Comment #12
averagejoe3000Comment #13
huzookaLet's keep this on 8.6.x since this is a bug report and not a feature request.
Comment #14
singhkiran commentedI ll work on this issue .
Comment #15
singhkiran commentedPlease find the patch.
Comment #17
Swapnil_Kotwal commentedUpdated coding standard. Have a look and please review it.
Comment #18
kkalaskar commentedComment #19
lauriii@Swapnil_Kotwal Thank you for your contribution! However, after looking at #17, I'm not sure I understand how the changes you've made are relevant to this issue. Drupal's issue scoping guidelines can be found in this documentation page.
Patch from #15 still needs review.
Comment #20
Swapnil_Kotwal commented@Lauri Eskola (lauriii) Thank you for your review. But just FYI there were 6 coding standard issues in patch #15, I have updated patch (classy-form-error-strong-3010558-16.patch) and resolved those coding standard issues.

Hereby attached a screenshot for the same.
Kindly review the updated patch.
Comment #21
lauriiiThese are coding standards problems with the pre-existing code. Coding standards problems not introduced by new changes should be fixed in their own issues. Feel free to open a new issue that contains fixes you've made and link it here. I'll provide review for your changes there. 🙂
Comment #22
bramdriesenRe-queued patch #15 for re-testing. Coding standards indeed need to be taken separately. Let's wait for the test outcome. Code wise patch 15 looks ok to me.
Comment #23
bramdriesen#15 passed testing. In that case I would say it's RTBC.
https://www.drupal.org/pift-ci-job/1199534
Comment #24
dwwI ran into the same thing at #2419131-99: [PP-1] #states attribute does not work on #type datetime. Glad to see this is a separate issue to fix that part. ;)
Added the requested change notice. Reviews and fixes welcome.
We've had a bunch of patches without interdiffs in here. The difference between #11 and #15 is that 15 also touches the one template in seven with the same problem: core/themes/seven/templates/details.html.twig
The issue title doesn't reflect this, but I think it's still in scope for this issue (since seven is a subtheme of classy, and it's the same bug). I mentioned that template in the CR for good measure (even though seven is "internal" and in theory, no one should care).
Generally, +1 to the RTBC of #15.
Thanks, everyone!
Cheers,
-Derek
Comment #25
pandaski commentedThanks. Works well with 8.7.x
Quick question, is there a reason to not displaying a colour?
Comment #26
dwwRe: #25: That's way out of scope for this issue. This is simply about removing bogus
<strong>tags. Colors have nothing to do with this.Cheers,
-Derek
Comment #27
pandaski commentedMake sense, thanks.
About the change in seven
/core/themes/seven/css/components/form.css
font-weight: bold; is missing?
Comment #28
dwwRe: #27 sure, good point. ;)
This is such a trivial change, I'm leaving it at RTBC, even though it's my patch.
I'll let @lauriii decide if they like it. :)
Thanks,
-Derek
Comment #29
bramdriesenChanges look good, so still RTBC :)
Comment #30
huzookaRe #27:
It's unnecessary since the needed bold font-weight property is inherited from Classy.
Seven does not remove Classy's form.css component, it inherits that. This change is unnecessary. Please remove!
Comment #31
Waldoswndrwrld commentedWill look at this.
Comment #32
Waldoswndrwrld commentedRe #30:
Removed the unnecessary font-weight: bold change.
Comment #33
huzookaBack to RTBC.
Comment #34
dwwSorry I was being hasty in #28. #32 is identical to #15. Agreed with RTBC.
Comment #35
bramdriesenRTBC :)
Comment #36
huzookaI'm really sorry, I've found one more thing I missed before:
Could you please move the bold font-weight after the
/* Inline form errors */comment?Comment #37
dwwRe: #36 yes, good point. ;)
Note: the d.o testbot is all sorts of broken right now. It will be many hours before this is tested.
Comment #39
dwwWeird, I would have thought this applied cleanly to both branches. #37 is for 8.7.x. Here's a re-roll for 8.6.x.
Comment #41
bramdriesenQueued for re-testing.
Comment #43
dwwBot continues to be confused. :/ Let's try some fresh patches for 8.7.x and 8.6.x.
Comment #44
bramdriesenRTBC again :)
Comment #45
huzookaRTBC
Comment #47
dww#46 is about a random fail, unrelated to this patch:
Also, there's mention of 6 CS fails, but none of them are touched by the patch:
re-queued #43 for 8.7.x. Hopefully that's enough to reset the bot confusion. :/
Cheers,
-Derek
Comment #48
dwwComment #49
pandaski commentedComment #50
lauriiiThe reason this hasn't been committed is that I some concerns about the backwards compatibility of this change. My main concern is that a theme could have changed the font weight of the error message to normal by overriding the template, and removing the
<strong>tag. They could have keptform-item--error-messageclass there, and now the text in the error would be bold again.We could add a new class in the template so that this would only effect themes that haven't overridden the template. We could remove the existing class
form-item--error-messagesince it doesn't follow BEM conventions, but we don't have a way to deprecate HTML classes. 🤷♂️Another idea would be to create a new library that is attached in the default template so that if someone has overridden the template, the library wouldn't get attached and it wouldn't affect their theme.
Comment #51
pandaski commentedSeems that adding a new class is the most straightforward way.
Could be...
Comment #52
dksdev01 commentedI am at Drupalcon Seattle and looking into this issue.
Comment #53
dksdev01 commentedChanging the branch to the latest version.
Comment #54
dksdev01 commentedFor now attaching reroll patch for 8.8.x, as there is still some discussion going on for the better way of handling this.
Comment #55
yogeshmpawarTriggering bots
Comment #56
pandaski commented#50 option 3 seems the safest method for a good balance between the legacy and change
Comment #57
afeijoAre we waiting for someone to implement a new library? If so, I can do it
Comment #60
tanubansal commentedSame issue is there in drupal 9.1
element there at core/themes/classy/templates/form/form-element.html.twig template
Can we have a patch for 9.1?
Comment #61
dww@tanubansal: Once again, the latest patch applies cleanly to 9.1.x branch. Please always try that yourself before asking others to do the work for you.
Thanks!
-Derek
Comment #62
tanubansal commentedThanks @dww. Its working fine.
RTBC+1
But no where its mentioned that patch will work on 9.1 as well. So, i thought it might not work on that version. Thanks for the clarification.
Great help
Comment #67
drummI’m using this as an issue to demonstrate #3161760: Provide automated testing environments for Drupal Core issues (using Tugboat) and #3167029: Opt-in core issues into the Drupal.org Issue Forks and Merge Requests Beta. The merge request is the patch from #54, successfully applied to 9.1.x.
Comment #68
dwwCool, thanks!
#54: https://www.drupal.org/pift-ci-job/1808390 shows "6 coding standards messages"
vs.
#64: https://www.drupal.org/pift-ci-job/1808327 shows "3945 coding standards messages"
So something seems off about the CS checking on the MR testbots...
Cheers,
-Derek
Comment #71
yash.rode commentedComment #72
yash.rode commentedComment #74
sagarchauhan commentedAdded fix for failing tests by updating hash of the affected files. Also updated css and twig templated of classy directory files in other themes.
Comment #76
john cook commentedThe patch applies cleanly and the
<strong>tags have been removed.But I'm setting back to "Needs work" as lauriii's concerns in comment #50 have not been addressed.
Either a class needs to be added to the
form-item--error-messageelements, that is used to apply the increased font weight. Or a new library that is attached in the template needs to be created and used (preferred).Comment #79
sahil.goyal commentedHi, Updating the patch as considering the #50 so i have created a new class as mentioned, added reroll file.
Comment #80
Ankit.Gupta commentedComment #82
catchThis is still valid for Umami in core, which has its own copy of the classy template, so moving there.
Comment #83
_utsavsharma commentedMade changes as suggested by #82.
Please review.
Comment #84
catchRe-titling.
Comment #85
gaurav-mathur commentedComment #86
gaurav-mathur commentedPatch #83 applied successfully on Drupal 10.1.x-dev and PHP 8.1.6.
The patch work properly for me.
Thanks.
Comment #87
gauravvvv commentedAddressed #50, also there are more files have
<strong>tag with them. I have added all the remaining files, Also I have added the required css to make the error message bold. Please reviewComment #88
sahilgidwani commentedChecked and applied patch it is working for 10.1.x
Comment #89
xjmThe failing test on this is: in Nightwatch tests:
I requeued it to see if it is reproducible.
Comment #91
catchTests are green again.
This looks good to me, even though it's all in Umami, only comitting to 10.1.x just in case someone somewhere is relying on the
<strong>tags.Comment #92
xjmComment #94
quietone commentedI didn't see a commit hash here, so I tracked it down.
b52100c11ee6ec96548d73ab32b795473e297700
And update and publish the change record