Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2021 at 13:30 UTC
Updated:
31 Aug 2021 at 14:19 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
aaron.ferris commentedThe question would be, what font size would we want to use for sidebar block quotes? Is there a design for this scenario?
I can see that block quotes have various font sizes per screen size, so we'd need a font per breakpoint.
Comment #3
tushar_sachdeva commented@aaron.ferris we can have a
font-size: 1.5rem;as it looks good with media query @custom-media --lg (min-width: 1000px);.There's a.sidebar-gridCSS class that gets added.We can use this class to create a selector to reset font size for blockquote's content when it is placed into the sidebar in the Olivero theme. I think we need to confirm this change with the maintainer if there any scenario for this or not.Please refer to the screenshot attached for the
font-size: 1.5rem;.Comment #4
aaron.ferris commentedLine height looks off to my eyes in that screenshot, we may want to tweak that alongside any font size change.
Comment #5
tushar_sachdeva commentedline-height: 2.5rem;looks good, attaching screenshot for reference, and below 1000px we can have same font-size and line height defined which we are already using for p tag underblockquoteelement globally.Comment #6
kiran.kadam911Comment #7
mherchelComment #8
kostyashupenkoComment #9
ranjith_kumar_k_u commentedThe patch looks good


Before patch
After patch
Comment #10
mherchelThis looks so much better. My thought is that we should stick to the 18px vertical rhythm units that our designers defined.
If we're doing weird things like multiplying it by 2.1, it doesn't make sense to use spacing units.
I tested out the regular 36px (2 spacing units) line height, and IMO it looks great. Animated gif below.
My thought is lets switch to
var(--sp2).Comment #11
kiran.kadam911Thanks @kostyashupenko for the patch. Providing updated patch as per @mherchel comment #10
Kindly review the patch.
Thanks!
Comment #12
chetanbharambe commentedVerified and tested patch #11.
Thanks, @kiran for the patch
Patch applied successfully and looks good to me as per Comment #10
Testing Steps:
# Go to Appearance -> Set Olivero theme.
# Create a custom block into the sidebar region.
# Add content.
# Create Blockquote by clicking on the Quotation Mark symbol
Expected Results:
# Blockquote's content font size and line height should be decreased when it is placed into the sidebar.
Actual Results:
# Currently font size and line-height are too big.
Please refer attached screenshots.
Looks good to me.
can be a move to RTBC.
Comment #15
lauriiiSubsystem maintainer review was provided in #10.
Committed 75394d6 and pushed to 9.3.x. Also cherry-picked to 9.2.x because Olivero is experimental. Thanks!