Opened 20 months ago
Closed 11 months ago
#59801 closed defect (bug) (fixed)
Twenty Fifteen: Pullquote block issues with text color and border
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 6.3.2 |
Component: | Bundled Theme | Keywords: | has-patch commit |
Focuses: | css | Cc: |
Description
Hello Team,
I have worked on the "Pullquote" block into the "Twenty Fifteen" theme and found that the text color for admin is not changed.
Here, I have attached its video.
Issue: https://share.cleanshot.com/2QPVLc7H737ghxjw8lft
Thanks,
Attachments (3)
Change History (14)
#3
@
13 months ago
- Keywords needs-refresh added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
Unless mistaken this patch will also remove the default color. Can you explore if this is the case @viralsampat and how to ensure it doesn't get removed?
@
12 months ago
assigns lighter gray to .wp-block-pullquote
, inherits special Text color for quotes, adjusts citation text color when block has a special Background color
@
12 months ago
inherits text color for both blockquote
and the citation, removes Pullquote-related changes from r58368
#5
@
12 months ago
- Keywords 2nd-opinion added; needs-refresh reporter-feedback removed
- Summary changed from The pullquote block text color and border issue into the theme Twenty Fifteen to Twenty Fifteen: Pullquote block issues with text color and border
Border
Both patch options edit the border styles the same ways.
- The
blockquote
element should not have its own border. The editor shows one because the.editor-block-list__block
class is obsolete and the selector needs to be replaced. (The extra border was also mentioned on #59612, but its latest patch only includes border color classes for the theme.) - I added a default border style of
solid
for the block so people would not need to use that control for the most common style.
Text Color
The default text color for this theme originally had a lighter gray for quotes, including the Pullquote block, and then it set the citation to the body color again.
blockquote { color: #707070; color: rgba(51, 51, 51, 0.7); } .wp-block-pullquote cite, blockquote cite, blockquote small { color: #333; /* body color */ }
However, WordPress 5.9 (GB30951) made the Pullquote's elements inherit the block color on the front end (except when a theme uses a higher specificity or sets the color later in the cascade) more than two years ago.
.wp-block-pullquote p, .wp-block-pullquote blockquote, .wp-block-pullquote cite { color: inherit; }
Since 6.4, the iframe editor has also inherited the body color, so some people might not know that the colors were ever different. This could be considered an established design change, though unintentional.
59801.re-establish-color.patch: I am not entirely comfortable with reassigning the color to the block container to re-establish the original design, but I made a patch to show how it might work.
- Sets semi-transparent gray (with fallback) on
.wp-block-pullquote
(andblockquote
within the editor) - Makes
blockquote
inherit any custom Text color - Makes citation inherit the text color when a user chooses a different Background color (setting either a Text or Background color on the Pullquote does not necessarily mean that the user wanted the citation color to match the quote, but a dark Background requires the ability to change the citation color)
59801.inherit-all.patch would officially establish the matching colors with this theme.
- Makes both the
blockquote
and the citation inherit the text color from their containers - Removes Pullquote-related changes from [58368]
#6
@
11 months ago
- Milestone changed from Future Release to 6.7
- Owner set to karmatosed
- Status changed from new to assigned
@sabernhardt just checking on this before move it to testing and a candidate for commit. The following would be my ideal based on the options.
establish the matching colors with this theme.
I am aware it removes the changes from #58368 but that feels ok to me.
#7
@
11 months ago
- Keywords needs-testing added; 2nd-opinion removed
59801.inherit-all.patch is probably the better choice for the direction now.
#8
@
11 months ago
- Keywords commit added
@sabernhardt thank you, I will test and look to progress that then.
I have checked above mentioned issue and resolved it. Here, I have added my patch.