#58558 closed defect (bug) (fixed)
Twenty Nineteen: Separator block does not support theme colors in editor
Reported by: | nidhidhandhukiya | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | minor | Version: | 6.2.2 |
Component: | Bundled Theme | Keywords: | has-patch has-screenshots has-testing-info commit |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue.
- Activate Twenty Nineteen theme.
- Choose Separator block.
- Apply background color any from the default except white or light gray.
You can able to see the change in the color front side but it is not same as the chosen color in editor side.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/Y0J1n5yLjKtvZqLb3Pzm
Attachments (4)
Change History (17)
#1
@
15 months ago
- Focuses css added
- Keywords needs-patch added
- Severity changed from normal to minor
- Summary changed from Twenty Nineteen Separator block is having issue with background color in editor. to Twenty Nineteen: Separator block does not support theme colors in editor
#2
@
15 months ago
- Keywords has-patch added; needs-patch removed
Tested with https://core.trac.wordpress.org/attachment/ticket/58558/58558.2.patch. The patch looks good to me and this solved the issue.
This ticket was mentioned in PR #4690 on WordPress/wordpress-develop by @mukesh27.
15 months ago
#4
Trac ticket: https://core.trac.wordpress.org/ticket/58558
#5
@
15 months ago
- Milestone changed from Awaiting Review to 6.3
Thanks @nidhidhandhukiya for the ticket.
@sabernhardt i raise PR with the your suggestion could you take a look it.
Moving to 6.3
@mukesh27 commented on PR #4690:
15 months ago
#6
@sabernhardt Could you please take a look
#7
@
15 months ago
- Keywords changes-requested added
Reviewing the patches:
- 58558.patch makes changes to
style.css
rather thanstyle-editor.scss
and building tostyle-editor.css
. - 58558.2.patch makes changes to the correct files but has some spacing issues with the curly braces that don't appear for me locally after using the theme's build script.
- PR 4690 makes changes to
style-editor.scss
, but notstyle-editor.css
. It needs a run ofnpm i && npm run build
in the local theme directory to buildstyle-editor.css
, commit the changes and push to the PR. I've left a similar note on the PR.
Adding changes-requested
.
As PR 4690 is the latest patch, I'll submit a test report for it below (assuming the npm i && npm run build
commands were run on it and it was updated).
#8
@
15 months ago
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/4690.diff
Environment
- WordPress: 6.3-alpha-55505
- PHP: 7.4.33
- Server: Apache/2.4.56 (Ubuntu)
- Database: mysqli (Server: 5.7.41-0ubuntu0.18.04.1 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (Windows 10/11)
- Theme: Twenty Nineteen 2.5
- MU-Plugins: None activated
- Plugins: None activated
Actual Results
- ✅ Before applying the patch: In the Editor, the Separator block doesn't respect background colour selections other than white and light gray. Issue reproduced.
- ✅ After applying the patch (and building the theme as the PR is currently missing this): In the Editor, the Separator block respects all background colour selections. Issue resolved with the patch (after the requested changes are made).
Additional
- Once the requested changes are made to the PR, it should be ready for
commit
consideration.
#9
@
15 months ago
- Keywords changes-requested removed
Thanks @costdev, The changes was addressed and ready for review.
#10
@
15 months ago
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/4690.diff
Environment
- OS: Windows 11 (22H2)
- Web Server: nginx/1.23.4
- PHP: 7.4.33
- WordPress: 6.3-alpha-55505-src
- Browser: Chrome Version 114.0.5735.110 (Official Build) (64-bit)
- Theme: Twenty Nineteen
Before Applying The Patch
- Followed the instructions of @costdev
- The colors for separartor blocks did not show up.
After Applying The Patch
- Followed the same instructions
- ✅ The colors of separator blocks showed as expected.
Screenshots
- Before Patch: https://prnt.sc/a4Vcb5FX87so
- After Patch: https://prnt.sc/SzqzOHUpdp7G
#11
@
15 months ago
- Keywords commit added
Thanks for the update @mukesh27 and for the test report @zunaid321!
This one looks good to go. Adding for commit
consideration.
#12
@
15 months ago
- Owner set to audrasjb
- Resolution set to fixed
- Status changed from new to closed
In 56036:
@audrasjb commented on PR #4690:
15 months ago
#13
committed in https://core.trac.wordpress.org/changeset/56036
The colors work on the front end, so the patch would need to edit the
style-editor.scss
file (and be compiled tostyle-editor.css
) instead ofstyle.css
.