Problem/Motivation

When using claro as a frontend theme, layout builder icons appear wrong.

Steps to reproduce

  1. Install Drupal
  2. Set Claro as a default theme
  3. Create a block type or two
  4. Enable layout builder module
  5. On a content type display, enable "Use Layout Builder" and click "Edit layout"
  6. Add a block in a region

Proposed resolution

Extend layout_builder/drupal.layout_builder: library to use claro specific styling for layout builder.

Remaining tasks

Review

User interface changes

Current result / before

Messages display an additional icon in the top left corner

before

Expected result / after

Messages should not display any additional icon in the top left corner

after

API changes

NA

Data model changes

NA

Release notes snippet

NA

CommentFileSizeAuthor
#94 after.png253.11 KBshweta__sharma
#94 before.png252.49 KBshweta__sharma
#90 Screenshot 2024-01-02 124859.png24.15 KBnitin shrivastava
#90 Screenshot 2024-01-02 124556.png23.85 KBnitin shrivastava
#87 Screenshot at Jan 02 11-01-41.png229.69 KBshweta__sharma
#83 3143237-83.patch2.53 KBandypost
#81 3143237-nr-bot.txt144 bytesneeds-review-queue-bot
#78 3143237-78.patch1.32 KBanoopsingh92
#76 same-code.png82.4 KBanoopsingh92
#74 3143237-74.patch2.52 KBandypost
#73 After_Patch.png118.01 KBgaurav-mathur
#73 Before_Patch.png112.46 KBgaurav-mathur
#68 3143237 after patch RTL.png66.97 KBameymudras
#64 mr#52.png44 KBanoopsingh92
#64 without-applying-patch.png55.53 KBanoopsingh92
#64 after-applying-mr#52.png62.63 KBanoopsingh92
#64 manage-layout-bulder.png53.62 KBanoopsingh92
#64 enable-layout-builder-module.png26.54 KBanoopsingh92
#64 enable-claro-theme.png20.58 KBanoopsingh92
#62 After Patch.png98.61 KBBushra Shaikh
#62 Before Patch.png58.52 KBBushra Shaikh
#59 Screenshot 2022-02-23 at 12.43.14 PM.png3.54 MBSatyajit1990
#57 Screenshot 2022-02-23 at 10.34.12 AM.png200.39 KBSatyajit1990
#54 After--patch.png17.42 KBvikashsoni
#54 before--patch--pic.png17.73 KBvikashsoni
#49 After patch icon.png52.33 KBmanojithape
#49 Before patch icon.png27.18 KBmanojithape
#47 afterpatch.png37.42 KBrinku jacob 13
#47 beforepatch.png39.39 KBrinku jacob 13
#46 3143237-after-fix.png16.87 KBindrajithkb
#46 3143237-46.patch2.6 KBindrajithkb
#44 3143237-after-d9.png37.17 KBabhijith s
#44 3143237-before-d9.png37.94 KBabhijith s
#44 3143237-after-d8.png23.84 KBabhijith s
#44 3143237-before-d8.png13.66 KBabhijith s
#43 3143237_d9_after.png319.53 KBhinal05
#43 3143237_d9_before.png322.47 KBhinal05
#43 3143237_d8_after.png331.37 KBhinal05
#43 3143237_d8_before.png331.76 KBhinal05
#41 Screen Shot 2020-07-13 at 5.59.06 AM.png319.94 KBtanubansal
#40 interdiff_d8.9.x_33-40.txt1.89 KBindrajithkb
#40 d8.9.x_3143237-40.patch2.62 KBindrajithkb
#40 interdiff_d9.1.x_29-40.txt1.89 KBindrajithkb
#40 d9.1.x_3143237-40.patch2.6 KBindrajithkb
#36 Screenshot 2020-07-10 at 12.43.02 AM.png21.19 KBthedrupalkid
#36 Screenshot 2020-07-10 at 12.35.37 AM.png58.92 KBthedrupalkid
#33 d8-9-x.png15.28 KBindrajithkb
#33 interdff_d8.9.x_27-33.txt1.54 KBindrajithkb
#33 d8.9.x_3143237-33.patch2.3 KBindrajithkb
#31 Screen Shot 2020-07-07 at 6.00.34 PM.png694.67 KBramya balasubramanian
#31 Screen Shot 2020-07-07 at 6.00.18 PM.png453.29 KBramya balasubramanian
#31 Screen Shot 2020-07-07 at 5.58.35 PM.png757.44 KBramya balasubramanian
#31 Screen Shot 2020-07-07 at 5.58.46 PM.png710.08 KBramya balasubramanian
#30 Screenshot 2020-07-07 at 12.33.31 PM.png72.75 KBkiran.kadam911
#30 interdiff_27-29.txt1.54 KBkiran.kadam911
#30 3143237-29.patch2.27 KBkiran.kadam911
#27 3143237-27-drupal8-9-x.patch2.02 KBravi.shankar
#27 3143237-27-drupal9-1-x.patch2 KBravi.shankar
#25 Message RTL.png28.58 KBbnjmnm
#23 3143237-before-patch-globe.png22 KBpriyanka.sahni
#23 3143237-before-patch-location.png22.05 KBpriyanka.sahni
#23 3143237-after-patch-location.png28.97 KBpriyanka.sahni
#23 3143237-after-patch-globe.png21.83 KBpriyanka.sahni
#21 3143237-after-21-location.png15.22 KBindrajithkb
#21 3143237-after-21-globe.png15.68 KBindrajithkb
#21 interdiff_18-21.txt1.08 KBindrajithkb
#21 claro_layout_builder_extra_icon-3143237-21.patch2.02 KBindrajithkb
#18 interdiff_4-18.txt1.9 KBindrajithkb
#18 claro_layout_builder_extra_icon-3143237-18.patch1.82 KBindrajithkb
#7 After_Patch_2.png17.59 KBpriyanka.sahni
#7 After_Patch.png28.82 KBpriyanka.sahni
#7 Before_Patch.png38.16 KBpriyanka.sahni
#4 3143237-before-fix.png19.62 KBindrajithkb
#4 3143237-after-fix.png18.99 KBindrajithkb
#4 claro_layout_builder_extra_icon-3143237-4.patch704 bytesindrajithkb
Clipboard - May 27, 2020 12_33 PM.png13.01 KBdavidferlay
2020-05-27_15-05.png38.06 KBdavidferlay

Issue fork drupal-3143237

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

davidferlay created an issue. See original summary.

davidferlay’s picture

Title: Claro + layout builder messages display additional icon » Claro + layout builder messages display additional icon in top left corner
indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Hi @davidferlay Thanks for the detail picture of the issue.
i have removed the extra icon.

Please review the patch.

Before:

before

After:

after

indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Active » Needs review
priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new38.16 KB
new28.82 KB
new17.59 KB

Verified and tested by applying the patch#4.This looks good to me.Moving it to RTBC.

Steps to test.
1. Go to the admin site.
2. Go to admin/appearance.
3. Enable the Claro theme.
4. Go to admin/modules.
5. Enable Layout Builder, Layout Discovery and click on install.
6. Go to admin/structure/block/list/claro , click on custom block library , click on add custom block.
7. Create 2-3 blocks.
8. Go to admin/structure/types/manage/article/display/default/layout.
9. Add blocks to the layout and save it.

Before_Patch
BeforePatch

After_Patch
AfterPatch

AfterPatch2

priyanka.sahni’s picture

Assigned: priyanka.sahni » Unassigned
davidferlay’s picture

Excellent, patch working fine indeed

Thanks @Indrajith KB and @priyanka.sahni !

davidferlay’s picture

.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

The globe and location icons are being used intentionally so we shouldn't be removing them. We should try to make some changes in Claro so that the default icons get replaced with the globe and location icons when necessary.

indrajithkb’s picture

Hi @lauriii here we have specific classes. i just went through this message designs (https://www.drupal.org/project/ideas/issues/3017785#comment-12890042) that's why i removed the icons. So lets think about #11. Need advice and design for this. Thanks in advance.

bnjmnm’s picture

  1. As someone who worked on Layout Builder, I can confirm #11 is correct. The Globe/Location icons are Layout Builder's intentional modifications of the default message styling. Those intentional modifications should persist in Claro
  2. index 6ccdf205ad..0f0cc849b0 100644
    --- a/core/themes/stable/css/layout_builder/layout-builder.css

    --- a/core/themes/stable/css/layout_builder/layout-builder.css
    +++ b/core/themes/stable/css/layout_builder/layout-builder.css

    Whatever the fix ultimately winds up being, it should be in Claro, not Stable. There are several reasons for this:
    1. This would impact EVERY theme that inherits from Stable.
    2. All core themes, including Claro, stopped using Stable as of Drupal 9
    3. Stable/Stable 9 intentionally don't change. They exist to provide a backwards-compatibility-ensuring "fence".

  3. This may best be accomplished with a small library that extends layout_builder/drupal.layout_builder

davidferlay’s picture

Btw patch #4 was "working" for 8.9 but not in 9.0 anymore anyways)

asmita26’s picture

Assigned: Unassigned » asmita26
asmita26’s picture

Assigned: asmita26 » Unassigned
indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.82 KB
new1.9 KB

Hi @bnjmnm sorry for my patch #4, and now i have updated the patch. Now its only for claro please review my patch.

bnjmnm’s picture

Status: Needs review » Needs work

Thanks for #18, this is how the new styling should be added.

This is not the correct solution, however, it's removing the icons that should be visible, and displaying the ones that shouldn't be visible. The Globe/Location icons should be there and in the correct position. The checkmarks should not be displayed.

indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.02 KB
new1.08 KB
new15.68 KB
new15.22 KB

Hi @bnjmnm thanks for the review, now i have updated the patch with
1. showing globe/location icons
2. removed the tick mark
Please review #21

adding screenshots:

globe:

globe

location:

location

priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

Verified and tested by applying the patch #21.It was applied successfully.It looks good to me.Can be moved to RTBC.

Before Patch globe-
Before Patch

Before Patch location -
Before Patch

After Patch globe-
After Patch

After Patch location-
After Patch

kiran.kadam911’s picture

Status: Needs review » Reviewed & tested by the community
bnjmnm’s picture

Version: 8.9.x-dev » 9.1.x-dev
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new28.58 KB

Looks like the patch was written against 8.9. This needs to be rerolled to 9.1. It's possible the 9.1 version will still apply to 8.9, but if it doesn't then a seperate 8.9 version is needed.

Unfortunately, the fix does not work properly on RTL:

ravi.shankar’s picture

Assigned: Unassigned » ravi.shankar
ravi.shankar’s picture

Assigned: ravi.shankar » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2 KB
new2.02 KB

Added patch for Drupal 8.9.x and Drupal 9.1.x.

bnjmnm’s picture

Status: Needs review » Needs work

Switching back to "needs work" since the RTL issue in #25 is still unaddressed.

kiran.kadam911’s picture

Assigned: Unassigned » kiran.kadam911
kiran.kadam911’s picture

Assigned: kiran.kadam911 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.27 KB
new1.54 KB
new72.75 KB

Kindly review the attached patch.

Manage RTL for globe/location icon with the latest patch #27 9.1.

SS:

Thanks!

ramya balasubramanian’s picture

Hi @kiran.kadam,

Steps to test:
1) Installed 9.1 version and enabled and set claro as the default theme on the Appearance section.
2) Enabled Layout Builder and layout discovery module.
3) Edit the Article content and in Manage display section, click the checkbox 'Use layout builder' and click the 'Manage Layout;' option.
4) Then you will be able to see the below screens.


Before patch:

LTR:
TEST

RTL:
TEST


After Patch:

LTR:
TEST

RTL:
TEST

From my side, this is RTBC + 1.

indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Assigned: indrajithkb » Unassigned
StatusFileSize
new2.3 KB
new1.54 KB
new15.28 KB

Hi @kiran.kadam911 thanks for the #30 patch, i have applied successfully on 9.1.x but it's failed to apply on 8.9.x . so am adding separate patch for 8.9.x.

Hi @Ramya Balasubramanian thanks for verifying the fix.

we can use the #30 patch for 9.1.x and #33 for 8.9.x

attaching screenshot for 8.9.x - rtl

after patch

Status: Needs review » Needs work

The last submitted patch, 33: d8.9.x_3143237-33.patch, failed testing. View results

indrajithkb’s picture

Status: Needs work » Needs review
thedrupalkid’s picture

Working as expected, Hence marking it as RTBC.

thedrupalkid’s picture

Status: Needs review » Reviewed & tested by the community
lauriii’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -messages, -Claro, -icon +Admin UI Modernisation initiative
  1. +++ b/core/themes/claro/css/theme/layout-builder.pcss.css
    @@ -0,0 +1,11 @@
    +.layout-builder__message--defaults .messages,
    

    Let's add a docblock to the beginning of the file. 🧐

  2. +++ b/core/themes/claro/css/theme/layout-builder.pcss.css
    @@ -0,0 +1,11 @@
    +  background-position: 20px 26px; /* LTR */
    ...
    +  background-position: right 20px top 26px;
    

    We should use rems here to be more consistent

  3. +++ b/core/themes/claro/css/theme/layout-builder.pcss.css
    @@ -0,0 +1,11 @@
    +.layout-builder__message .messages--status .messages__header {
    

    Could we make this selector .layout-builder__message--defaults .messages__header, .layout-builder__message--overrides .messages__header to make sure we don't remove the background accidentally when we shouldn't? 🤔

indrajithkb’s picture

Assigned: Unassigned » indrajithkb
indrajithkb’s picture

Assigned: indrajithkb » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.6 KB
new1.89 KB
new2.62 KB
new1.89 KB

Thanks @lauriii for your review and comments , i have updated both patch accordingly please review.

tanubansal’s picture

StatusFileSize
new319.94 KB

From my side, this is RTBC + 1.

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.

hinal05’s picture

StatusFileSize
new331.76 KB
new331.37 KB
new322.47 KB
new319.53 KB

Applied patch #40 and it's working fine. RTBC+1 Please check the screenshot.

abhijith s’s picture

StatusFileSize
new13.66 KB
new23.84 KB
new37.94 KB
new37.17 KB

Applied patch #40 for both 8.9.x and 9.2.x.Both works fine.Adding screenshots below.

Before patch:

d8
before

d9
before2

After patch:

d8
after

d9
after2

RTBC +1

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.

indrajithkb’s picture

StatusFileSize
new2.6 KB
new16.87 KB

Here Re-rolling the patch to 9.3.x, please review.

SS

image

rinku jacob 13’s picture

StatusFileSize
new39.39 KB
new37.42 KB

Verified and tested rerolled patch #46 for drupal 9.3.x-dev version. Patch applied successfully and looks good to me.Adding screenshot for the reference.

manojithape’s picture

Assigned: Unassigned » manojithape
manojithape’s picture

StatusFileSize
new27.18 KB
new52.33 KB

Verified and tested patch#46 on the drupal 9.3.x-dev version and Claro 9.3.0-dev version. Patch applied successfully and looks good to me.

Testing Steps:

  1. Install drupal 9.3.x-dev version.
  2. Go to Appearance -> Set Claro theme as admin and default theme
  3. Enable layout builder module
  4. On a CT display, enable "Use Layout Builder" and click "Edit layout"
  5. Add a block in a region
  6. Observe the top left icon of the message not displayed properly and an extra icon displayed on the edit layout page.
  7. Now apply the patch and verify that the proper single left icon displayed on the message.

Testing Results:
After applying the patch proper single left icon displayed on the layout builder edit page.

We can move this ticket to RTBC.

manojithape’s picture

Assigned: manojithape » Unassigned
bnjmnm’s picture

Status: Needs review » Needs work
  1. +++ b/core/themes/claro/claro.libraries.yml
    @@ -176,6 +176,12 @@ media-form:
    diff --git a/core/themes/claro/css/theme/layout-builder.css b/core/themes/claro/css/theme/layout-builder.css
    
    diff --git a/core/themes/claro/css/theme/layout-builder.css b/core/themes/claro/css/theme/layout-builder.css
    new file mode 100644
    
    new file mode 100644
    index 0000000000..e18aa82f83
    

    This needs to be recompiled with the current JS build tools. There is a "custom commands failed" error because this complied version is not matching what the complied layout-builder.pcss.css is expected to be.

  2. +++ b/core/themes/claro/css/theme/layout-builder.css
    @@ -0,0 +1,28 @@
    +/**
    + * @file
    + * layout builder.
    + *
    + * Replaces the inherited styles provided by Stable.
    + */
    

    This comment is incorrect. Claro no longer inherits from Stable. Instead, this is overriding styles from the Layout Builder module.

    The line with the uncapitalized "layout builder." can probably be removed entirely, as changing the other line will now sufficiently explain the file purpose.

indrajithkb’s picture

Status: Needs work » Needs review

Hi @bnjmnm thanks for your review, i have done above mentioned points. Please review the merge request

vikashsoni’s picture

StatusFileSize
new17.73 KB
new17.42 KB

Applied patch #30
Patch applied successfully
for ref sharing screenshot .....

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.

kristen pol’s picture

@vikashsoni Thank you for testing. What version did you test? I'm assuming 9.3 since that's what the issue version was when you were testing.

I checked and the patch applies cleanly to 9.3 and 9.4 and with offset for 10 (see below). This should be tested on 9.4 and 10 so tagging.

[drupal-10.0.x-dev/10.0.x] [drupal-10.0.x-dev]$ patch -p1 < 839.diff 
patching file core/themes/claro/claro.info.yml
patching file core/themes/claro/claro.libraries.yml
Hunk #1 succeeded at 177 (offset 1 line).
patching file core/themes/claro/css/theme/layout-builder.css
patching file core/themes/claro/css/theme/layout-builder.pcss.css
Satyajit1990’s picture

StatusFileSize
new200.39 KB

Testing Completed :
Patch Used : #46

Patch Used : #46
Testing Output : After applying the patch It looks good to me.

kristen pol’s picture

Thanks for testing @Satyajit1990. Would you test with Drupal 10 using simplytest.me as well?

Satyajit1990’s picture

Issue summary: View changes
StatusFileSize
new3.54 MB

Hi @Kristen Pol
I tried using patch #46 in version 10 But it's not working on simplytest.me
Kindly see the screenshot as getting error

kristen pol’s picture

Thanks for testing @Satyajit1990. You shouldn't upload files of simplytest.me or DrupalPod not working.

I have found out from @catch that when the patch applies to more than one version, we can just test on 9.4 or 10, i.e. we don't have to test on all versions... just ones with different MRs/patches.

In #57, you wrote Patch Used : #46 but the most recent MR(patch) is in #52.

When using DrupalPod, you should be able to choose the branch 3143237-claro--layout (i.e. choose this from the Branch dropdown and leave the Choose a patchdropdown empty).

Leaving the manual testing tag to make sure MR 3143237-claro--layout in #52 is tested with Drupal 9.4.

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.

Bushra Shaikh’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new58.52 KB
new98.61 KB

Verified and tested patch#52 on the drupal 9.5.x-dev version and Claro 9.5.x-dev version. Patch applied successfully and looks good to me.

Testing Steps:

  1. Install drupal 9.5.x-dev version.
  2. Go to Appearance -> Set Claro theme as admin and default theme
  3. Enable layout builder module
  4. On a CT display, enable "Use Layout Builder" and click "Edit layout"
  5. Add a block in a region
  6. Observe the top left icon of the message not displayed properly and an extra icon displayed on the edit layout page.
  7. Now apply the patch and verify that the proper single left icon is displayed on the message.

Testing Results:
After applying the patch proper single left icon is displayed on the layout builder edit page.

We can move this ticket to RTBC.

quietone’s picture

Status: Reviewed & tested by the community » Needs work

The issue summary shows an image of simplytestme as the expected result. That should show the correct after patch results. Setting to NW for this.

Correct me if I am wrong but after reading the comments I would expect to see after screenshots of the globe and location icons for both RTL and LTR languages. I say two types of languages because #25 pointed out that the fix at that time was not working with RTL languages. We should make sure it is working now. Shouldn't we?

And a note for the committer.
Multiple sets of screenshots have been uploaded for the patch in #40, starting in #41, then in #43 and again in #44. And later, multiple sets of screenshots have been uploaded for the patch in #46, starting in #47, then in #49. I have not adjusted credit because I am not sure of what screenshots are truly needed here.

anoopsingh92’s picture

I have also tested this issue in Drupal 9.5.0-dev. #52 MR is working fine for me.
I have attached some screenshots for clarification.

Without applying patch
without patch

After MR#52
Patch #52

Thanks

anoopsingh92’s picture

I tried to apply the patch in the same Drupal Version but the patch doesn't work.

Getting this

Lenovo@LAPTOP-PDE747K8 MINGW64 /c/xampp/htdocs/drupal-9 ((4106d4a...))
$ git apply -v d9.1.x_3143237-40.patch
Checking patch core/themes/claro/claro.info.yml...
error: core/themes/claro/claro.info.yml: No such file or directory
Checking patch core/themes/claro/claro.libraries.yml...
error: core/themes/claro/claro.libraries.yml: No such file or directory
Checking patch core/themes/claro/css/theme/layout-builder.css...
Checking patch core/themes/claro/css/theme/layout-builder.pcss.css...

When this patch was not applying to me then I applied #52 MR Hard coded then changes reflected me.
Thanks

kristen pol’s picture

@anoopsingh92 Thank you for trying to contribute to this issue but the issue was marked "Needs work" so it was unnecessary to manually test. Please review previous comments prior to manually testing issues to avoid unnecessary work and confusion. Thanks!

kristen pol’s picture

Issue tags: -Needs manual testing

Removing tag for now to avoid confusion.

ameymudras’s picture

StatusFileSize
new66.97 KB

As per #63 adding RTL screenshot for MR #52

ameymudras’s picture

Issue summary: View changes
ameymudras’s picture

Status: Needs work » Needs review

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.

gaurav-mathur’s picture

Assigned: Unassigned » gaurav-mathur
gaurav-mathur’s picture

Assigned: gaurav-mathur » Unassigned
StatusFileSize
new112.46 KB
new118.01 KB

Applied patch #4 on Drupal 9.5.x-dev
The patch worked perfectly & looks good to me, issue got fixed
Refer to the attached screenshots.

andypost’s picture

StatusFileSize
new2.52 KB

re-roll patch for 10.1.x from MR

anoopsingh92’s picture

I applied patch #74. getting this error.

$ git apply -v 3143237-74.patch
Checking patch core/themes/claro/claro.info.yml...
error: while searching for:
    - claro/media_library.theme
  media_library/widget:
    - claro/media_library.theme

regions:
  header: 'Header'

error: patch failed: core/themes/claro/claro.info.yml:153
error: core/themes/claro/claro.info.yml: patch does not apply
Checking patch core/themes/claro/claro.libraries.yml...
error: while searching for:
  dependencies:
    - media/form

system.admin:
  version: VERSION
  css:

error: patch failed: core/themes/claro/claro.libraries.yml:159
error: core/themes/claro/claro.libraries.yml: patch does not apply
Checking patch core/themes/claro/css/theme/layout-builder.css...
error: core/themes/claro/css/theme/layout-builder.css: already exists in working directory
Checking patch core/themes/claro/css/theme/layout-builder.pcss.css...
error: core/themes/claro/css/theme/layout-builder.pcss.css: already exists in working directory

anoopsingh92’s picture

StatusFileSize
new82.4 KB

You have added the same CSS code in layout-builder.css and layout-builder.pcss.css

diff --git a/core/themes/claro/css/theme/layout-builder.css b/core/themes/claro/css/theme/layout-builder.css
new file mode 100644
index 0000000000..9b07241f51
--- /dev/null
+++ b/core/themes/claro/css/theme/layout-builder.css
@@ -0,0 +1,26 @@
+/*
+ * DO NOT EDIT THIS FILE.
+ * See the following change record for more information,
+ * https://www.drupal.org/node/3084859
+ * @preserve
+ */
+
+/**
+ * @file
+ * Overriding styles from the Layout Builder module.
+ */
+
+.layout-builder__message--defaults .messages,
+.layout-builder__message--overrides .messages {
+  background-position: 1.25rem 1.625rem; /* LTR */
+}
+
+[dir="rtl"] .layout-builder__message--defaults .messages,
+[dir="rtl"] .layout-builder__message--overrides .messages {
+  background-position: right 1.25rem top 1.625rem;
+}
+
+.layout-builder__message--defaults .messages__header,
+.layout-builder__message--overrides .messages__header {
+  background: none;
+}
diff --git a/core/themes/claro/css/theme/layout-builder.pcss.css b/core/themes/claro/css/theme/layout-builder.pcss.css
new file mode 100644
index 0000000000..d5e7d30d9c
--- /dev/null
+++ b/core/themes/claro/css/theme/layout-builder.pcss.css
@@ -0,0 +1,17 @@
+/**
+ * @file
+ * Overriding styles from the Layout Builder module.
+ */
+
+.layout-builder__message--defaults .messages,
+.layout-builder__message--overrides .messages {
+  background-position: 1.25rem 1.625rem; /* LTR */
+}
+[dir="rtl"] .layout-builder__message--defaults .messages,
+[dir="rtl"] .layout-builder__message--overrides .messages {
+  background-position: right 1.25rem top 1.625rem;
+}
+.layout-builder__message--defaults .messages__header,
+.layout-builder__message--overrides .messages__header {
+  background: none;
+}

Please cross-check once again. Thanks

anoopsingh92’s picture

anoopsingh92’s picture

StatusFileSize
new1.32 KB

Please review the re-rolled patch.

anoopsingh92’s picture

@andypost patch is fine. deleting my patch. Thanks

deepalij’s picture

Tried to apply patch #78 on Drupal 10.1.x-dev
Patch failed to apply
Getting below error:

Checking patch core/themes/claro/claro.libraries.yml...
error: while searching for:
  version: VERSION
  css:
    theme:
      css/theme/layout-builder.css: {}

system.admin:
  version: VERSION

error: patch failed: core/themes/claro/claro.libraries.yml:180
error: core/themes/claro/claro.libraries.yml: patch does not apply
Checking patch core/themes/claro/css/theme/layout-builder.css...
error: core/themes/claro/css/theme/layout-builder.css: No such file or directory
needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or 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.

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

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

andypost’s picture

Status: Needs work » Needs review
StatusFileSize
new2.53 KB

re-roll for 11.x

smustgrave’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Confirmed the issue but using claro as my front-end theme.

Applying #83 addressed the issue and I'm seeing the same screenshots as currently in the issue summary.

Updated the issue summary to match the standard template.

quietone’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs issue summary update

I'm triaging RTBC issues. I read the IS and skimmed through the comments from #63 onwards. didn't find any unanswered questions or other work to do.

There are failing tests, setting to Needs work. Since DrupalCI is deprecated this should be on an MR now too.

I tested this on today on 11.x, standard install. Following the steps to reproduce in the issue summary, I was not able to reproduce the problem. The hint was in #84 that Claro should be the default theme. When I made the change I saw the problem, but only in the error message. There was no problem with the warning message. The steps to reproduce should be updated to state that Claro must be set to the default theme. I am tagging for an issue summary update.

shweta__sharma’s picture

Issue summary: View changes

Issue summary updated.

shweta__sharma’s picture

StatusFileSize
new229.69 KB

I am only able to see the issue with the status message, not with the warning message.
Tested on Drupal 11

image

shweta__sharma’s picture

Status: Needs work » Needs review

Created MR for the updated Drupal branch 11.x
Thanks

nitin shrivastava’s picture

@shweta__sharma

After applying the patch, it looks fine, but the 'done' mark, which was displayed just before the status message, has been removed.

before patch
example
After patch
Example

nitin shrivastava’s picture

Status: Needs review » Needs work

Gauravvvv made their first commit to this issue’s fork.

gauravvvv’s picture

Addressed #90.
Leaving to NW as this still requires issue summary update.

shweta__sharma’s picture

StatusFileSize
new252.49 KB
new253.11 KB

Tested latest MR 5990 on Drupal 11. Changes have been updated layout builder icon with Claro is removed now.

shweta__sharma’s picture

Issue summary: View changes

Issue summary updated with latest UI changes. Added before/after screenshots.
Thanks

shweta__sharma’s picture

Status: Needs work » Needs review
finnsky’s picture

Gonna review a bit

finnsky’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. Thank you

larowlan’s picture

Priority: Normal » Minor
Issue tags: -Needs issue summary update

"Set claro as default theme" feels like an unlikely choice so lowering this to minor

larowlan’s picture

Closed the 9.3 MR

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

Is the code in the 11.x MR correct? It seems to be removing the background. The 9.3 MR was doing something different.
Which one was correct? Based on comments/reviews from @lauriii and @bnjmnm it feels like they were in favour of the 9.3 approach, which seems lost in the 11.x MR

Setting to needs work for clarification.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Status: Needs work » Postponed

The Claro theme was approved for removal in #3576460: [policy, no patch] Deprecate and remove Claro.

This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.

The deprecation work is in #3576668: [meta] Tasks to deprecate Claro and the removal work in #3584638: [meta] Tasks to remove the Claro theme.

smustgrave’s picture

Project: Drupal core » Claro
Version: main » 3.0.x-dev
Component: Claro theme » Code
Status: Postponed » Needs work

Claro has moved to contrib