Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2020 at 18:19 UTC
Updated:
8 Jul 2021 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
proeungComment #3
mherchelComment #4
kostyashupenkoComment #5
mherchelThis looks great! Tested, and works perfectly (screenshot below).
It'd be great to get some additional committer eyes on the PHP on commit (but everything looks perfect as far as I can tell).
Comment #6
steinmb commentedLooks OK, though there is a growing complexity in
olivero_preprocess_block(). Perhaps it should be refactored in a followup issue? That aside at least there we should use strict compare in:Comment #7
anmolgoyal74 commentedComment #8
mherchel#7 looks great. Good catch!
Comment #9
spokjePatch #7 doesn't apply any more and needs a reroll.
Comment #10
anmolgoyal74 commentedIgnore this patch.
Comment #11
anmolgoyal74 commentedComment #12
hinal05 commentedRe-roll the patch #11.
Comment #13
kapilv commentedComment #14
andy-blumComment #15
andy-blumPatch attached refactors the preprocess_block() code to reduce complexity.
Comment #16
mherchelThe patch above still contains the
core/themes/olivero/css/components/sidebar.pcss.cssfile, which is a duplicate ofcore/themes/olivero/css/components/menu-sidebar.pcss.cssI would also move this CSS file into the
core/themes/olivero/css/components/navigation/directory.There's still some BEM nesting going on, but I think this is still satisfies the issue problem, which is to decouple the menu from the region.
Comment #17
vsujeetkumar commentedAs mentioned in #16, I have done with the changes, Please have a look and advise.
Comment #18
mitthukumawat commentedPatch #17 looks fine and it applied cleanly for me in drupal 9.3.x-dev. The menu block in sidebar is appearing as per attached screenshot.
Comment #19
mherchelThis looks great to me! I'm making one super small whitespace change and then RTBC.
Comment #21
indrajithkb commented#20 says patch fails and needs work, as of now we can't see any failure on the patch #19 so moving back to RTBC.
Comment #22
mherchelTugboat preview for #19 https://3173022-menu-sidebar-igbqzbrunfbapkspi7ylequ4edtu6bqt.tugboat.qa...
Comment #23
mherchelOpened followup #3220569: Olivero: rename 'region' attribute to 'data-region' when applying custom styling to blocks
Comment #26
lauriiiCommitted b0e2327 and pushed to 9.3.x and backported to 9.2.x because Olivero is experimental. Thanks!