Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2021 at 08:09 UTC
Updated:
13 Jul 2021 at 10:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
kiran.kadam911Comment #3
kiran.kadam911Comment #4
kiran.kadam911Kindly review the attached patch.
Thanks!
Comment #5
gauravvvv commentedPlus icon is now aligned centered. Patch #4 fixes the issue.
Moving to RTBC
Comment #6
gauravvvv commentedComment #7
mherchelThis is a good catch. When we change this, we also need to change the alignment of the icon for the
route:<button>generated buttons (see https://www.drupal.org/node/3053689)I'm also not really concerned about how well it lines up within the block, but rather if it aligns visually with the text.
To me, we could do something like
align-self: center;on the button, and then also give it a small bottom margin to perfectly align it with the text.Whatever we do, we need to make the same corresponding visual change for the
route:<button>generated buttons, though.Comment #8
sakthivel m commentedProviding updated version of patch #8 as per comment #7.
Kindly review the patch,
Thanks
Comment #9
mherchelThanks for working on this.
We still need to change the alignment of the plus icon for the
route:<button>generated buttons (see https://www.drupal.org/node/3053689).That code is located at https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/themes/olive...
Also be sure to test that the changes in the mobile view do not visually affect the desktop navigation.
Comment #10
javi-er commentedI took a similar approach for aligning both cases as close as possible, I tested it on Chrome, Safari, FF and IE11 to make sure it's consistent.
There is a 1px difference on FF but other than that it should be aligned with the first line of text ( in the case it's more than one link link).
Patch attached (3212073-9.patch)
Comment #11
mherchelComment #12
mherchelThis is looking so much better! I have a couple minor changes:
This is good, but let's keep the
/* Visually align button with menu link text. */comment.This doesn't appear to be needed. When I remove it in devtools, I don't see any changes.
Comment #13
sakthivel m commentedProviding updated version of patch #13 as per comment #12
Comment #14
ranjith_kumar_k_u commentedThe above patch works fine.

Before patch
After patch

Comment #15
mherchelThis looks good to me. Thanks for all of the help!
Comment #18
lauriiiCommitted 7510304 and pushed to 9.3.x. Also cherry-picked to 9.2.x because Olivero is experimental. Thanks!