Opened 2 years ago
Closed 14 months ago
#57377 closed defect (bug) (fixed)
Twenty Twenty-One: Quote block shows quotation marks outside a background color area in the editor
Reported by: | nidhidhandhukiya | Owned by: | karmatosed |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | minor | Version: | 6.1.1 |
Component: | Bundled Theme | Keywords: | has-patch has-screenshots has-testing-info needs-testing |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue :-
- Activate the Twenty Twenty one theme.
- Choose Quote block.
- Apply background color.
Now you can able to see the
"
is outside from the background area.
And, if you check the user side it is working properly.
I have attached video for better understanding.
URL :- https://share.cleanshot.com/FSj7vGQq78NGzFVQW07D
Attachments (11)
Change History (32)
#1
@
18 months ago
- Focuses css added
- Keywords has-patch has-screenshots added
- Milestone changed from Awaiting Review to 6.3
- Summary changed from Twenty Twenty one theme quote block is having minor design issue. to Twenty Twenty-One: Quote block shows quotation marks outside a background color area in the editor
The patch corrects the quotation mark positioning. The padding from theme.scss is 1em
, so the patch's 20px
works at standard font size (but could have a discrepancy with the front with other font sizes).
#3
@
18 months ago
Test Report for https://core.trac.wordpress.org/attachment/ticket/57377/57377.patch
Environment:
===========
OS: windows
Browser: Google Chrome
PHP: 8.1.17
WordPress: 6.2.2
Theme: Twenty Twenty One
Before Patch : https://prnt.sc/HQ5__aEmnbIy
After Patch : https://prnt.sc/vt7hngWYDziI
Result After Patch:
- Quotation mark's Position Looks properly as expected in Editor.
#4
@
18 months ago
- Keywords has-testing-info added
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/57377/57377.patch
Environment:
OS: Windows
PHP: 8.1.9
WordPress: 6.2.2
Browser: Chrome
Theme: Twenty Twenty One
Plugins: None activated
Actual Results:
✅ Before patch: In the Editor, Quote was outside of the background area. https://prnt.sc/pXEZpJ-Du0VZ
✅ After patch: In the Editor, Quote gets inside of the background area. https://prnt.sc/LtXKPrEvK9eH
#5
@
18 months ago
- Keywords changes-requested added
I tested this change together with https://core.trac.wordpress.org/ticket/55991 patch 3 which allows changing the font size.
I was only able to make it work with larger font sizes if the 20px
value was changed to 1em
.
1em
is already used on the front, it is a style that is provided by WordPress core.
This ticket was mentioned in Slack in #core by mukeshpanchal27. View the logs.
18 months ago
#7
@
18 months ago
- Keywords reporter-feedback added
Added the reporter-feedback
keyword to indicate that further input is needed.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
17 months ago
#10
@
17 months ago
- Milestone changed from 6.3 to 6.4
This probably should wait until next release now.
This ticket was mentioned in Slack in #core by oglekler. View the logs.
15 months ago
This ticket was mentioned in Slack in #core-test by oglekler. View the logs.
15 months ago
#14
@
15 months ago
- Keywords commit added; needs-testing removed
- Owner set to karmatosed
- Status changed from new to assigned
Tested this and it looks good to me. Going to commit this now.
#16
@
15 months ago
- Keywords needs-testing added; commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
I am re-opening this as on testing after committing I now see and @desrosj confirms almost a half-fix. What I see is that this works for the front, but not for back now.
Perhaps we can get another check on this testing wise to ensure the PR holds up for others still and it's nothing unique to our sites. In testing today after commit though the full resolution hasn't been met unfortunately so we just need it to also pick up within the editor styles.
@
15 months ago
non-iframe editor likewise shows quotation mark inside the Quote block's background now
#17
@
15 months ago
The patch/commit changed the editor styles to match the front end, which had been fine.
This probably makes the side padding unnecessary on the smallest screens:
@media only screen and (max-width: 481px) { .editor-styles-wrapper .wp-block-quote { padding-left: calc(0.5 * var(--global--spacing-horizontal)); } }
The editor styles do not adjust properly for RTL languages, but that issue is separate from having the quotation mark outside the background.
character outside background area before patch