Problem/Motivation

Blockquote's content looks too big when placed into sidebar region.

Steps to reproduce

1. Create a custom block into sidebar region.
2. Add content.
3. Create Blockquote by clicking on Quotation Mark symbol.

Proposed resolution

We have to decreased font-size of p tag under blockquote element so that blockquote look's good into sidebar region.

Please refer to the screenshot attached.

Comments

tushar_sachdeva created an issue. See original summary.

aaron.ferris’s picture

The 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.

tushar_sachdeva’s picture

StatusFileSize
new209.45 KB

@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-grid CSS 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;.

aaron.ferris’s picture

Line height looks off to my eyes in that screenshot, we may want to tweak that alongside any font size change.

tushar_sachdeva’s picture

StatusFileSize
new201.2 KB

line-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 under blockquote element globally.

kiran.kadam911’s picture

mherchel’s picture

Priority: Normal » Minor
kostyashupenko’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.07 KB
ranjith_kumar_k_u’s picture

StatusFileSize
new385.09 KB
new365.09 KB

The patch looks good
Before patch
before patch
After patch
after patch

mherchel’s picture

Status: Needs review » Needs work
StatusFileSize
new212.58 KB
+++ b/core/themes/olivero/css/components/text-content.css
@@ -248,3 +248,15 @@
+    line-height: 2.3625rem

This 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).

kiran.kadam911’s picture

Status: Needs work » Needs review
StatusFileSize
new1.06 KB
new775 bytes

Thanks @kostyashupenko for the patch. Providing updated patch as per @mherchel comment #10

Kindly review the patch.

Thanks!

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new560.56 KB
new618.59 KB

Verified 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.

  • lauriii committed 75394d6 on 9.3.x
    Issue #3212120 by kiran.kadam911, kostyashupenko, tushar_sachdeva,...

  • lauriii committed 227c63a on 9.2.x
    Issue #3212120 by kiran.kadam911, kostyashupenko, tushar_sachdeva,...
lauriii’s picture

Version: 9.3.x-dev » 9.2.x-dev
Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs design review, -Needs subsystem maintainer review, -Needs design

Subsystem 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.