Closed (fixed)
Project:
Drupal core
Version:
10.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jul 2023 at 12:41 UTC
Updated:
29 Mar 2024 at 22:44 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
kunal.sachdev commentedRechecked it and found that title is shown in claro but not in olivero, hence updating the issue summary and title.
Comment #5
sakthi_dev commentedAs the title field of a node is mandatory by default, removed the if condition to check the value of that. The reason that the title not rendering is due to the if condition as the value is 0 which is considered as FALSE.
Please review.
Comment #6
kunal.sachdev commentedComment #7
kunal.sachdev commented_
Comment #8
kunal.sachdev commentedComment #9
kunal.sachdev commentedComment #10
djsagar commented@kunal.sachdev i also find the same issue.
Follow the steps which you provided.
After the MR #8, issue has been resolved.
For reference:

Before MR
After MR

RTBC ++
Comment #11
smustgrave commentedIssue summary is incomplete.
Left some comments on MR.
Comment #12
kunal.sachdev commentedComment #13
kunal.sachdev commentedComment #14
divya.sejekan commentedVerified issue with new changes. Working as expected after MR!4437 .
Attaching Screenshots of results
Testing steps :
1. Use Olivero theme
2. Create a new node with title as "0". Title is not displayed.
Moving to RTBC++
Comment #15
divya.sejekan commentedComment #16
longwaveThe MR question was not answered.
Comment #17
sakthi_dev commentedThanks @longwave.
Added the condition as title|render|striptags|trim is not empty so that if there are any tags it will remove it and check for the condition if it is empty. I think this is sufficient. Please review.
Comment #18
nitin shrivastava commentedThis MR applied successfully. Now the title is visible, and it is rendering fine.
The term "|render|striptags|trim" works well in twig.
After

Before

Moving to RTBC ++
Comment #19
nitin shrivastava commentedComment #20
quietone commentedI'm triaging RTBC issues. I read the IS and the comments. I don't see any unanswered questions.
This issue is about olivero, I am changing the component.
For those adding screenshots, it is best to include a link in the issue summary so that everyone working on the issue can find the latest screenshots.
I then read the MR and it is good to see a thorough tests, and for multiple themes. This now has a dataprovider to test one page for three themes. To me, that is not a good use of resources. The testing could be done in a loop in the original test thus keeping the setup to one functional test. Perhaps, we leave this as is and add a followup to convert this test class to one method that uses a data provider. Adding tag for a followup.
There is also work in the MR.
Comment #21
kunal.sachdev commented#20: Instead of creating a follow-up to do testing in a loop I changed the test in this issue only.
Comment #22
smustgrave commentedTook the screenshots from #14 to the issue summary.
Believe feedback has been addressed,
Comment #23
nod_test should be with other olivero-specific tests in
\Drupal\FunctionalTests\Theme\OliveroTestor a file next to it.Comment #24
kunal.sachdev commentedComment #25
nod_feedback in MR
Comment #26
kunal.sachdev commentedComment #27
smustgrave commentedSeems the use of a bae class has been implemented.
Comment #33
nod_Committed 00432f5 and pushed to 11.x. Thanks!