#59457 closed defect (bug) (worksforme)
Twenty Nineteen: Calendar block does not have theme preset text colors in the editor
| Reported by: | nidhidhandhukiya | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Steps to reproduce the issue :-
- Activate Twenty Nineteen theme.
- Choose Calendar block.
- Apply text color from inspector.
You can able to see the choosen font color front side but in editor side it may not change as per the selected color.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/DlNN9jMJzk7KJcYP4L44
Attachments (3)
Change History (10)
#4
@
2 years ago
- Summary Twenty Nineteen - Calendar block having issue with text color editor side. → Twenty Nineteen: Calendar block does not have theme preset text colors in the editor
The editor styles do not include the text color classes for any block or element to inherit the color. The patch on #49787 is currently focused on the mark element for highlighted text, but it sets text colors in the editor and adjusts them (in PHP) when someone changes the theme's primary color.
If possible, it would be nice to have one patch that works with any element.
#5
@
7 hours ago
I tested this on the latest trunk with Twenty Nineteen, and I was unable to reproduce the issue (video attached).
When selecting any of the theme preset text colors in the block settings, the calendar text updates immediately in the editor and matches the front end. It also works as expected when using a custom primary color set in the Customizer.
Since this is working properly now, this ticket can likely be closed.
Environment
- WordPress: 7.2-beta4-65231-src
- Subdirectory: No
- PHP: 8.3.33
- Server: nginx/1.31.6
- Database: mysqli (Server: 9.7.2 / Client: mysqlnd 8.3.33)
- Browser: Chrome 157.0.0.0
- OS: macOS
- Theme: Twenty Nineteen 3.4
- MU Plugins: None
- Plugins:
- Test Reports 1.3.1
@
58 minutes ago
Calendar blocks with text and background colors in the editor with WordPress 7.2-beta
#6
@
52 minutes ago
- Keywords has-patch needs-refresh removed
- Milestone Future Release
- Resolution → fixed
- Status new → closed
I also am able to see the chosen text colors, whether preset or custom, in the editor with the latest nightly build (WordPress 7.2-beta4-65283).
Thank you for your efforts!
#7
@
52 minutes ago
- Resolution fixed → worksforme
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Whilst I can see this issue, I think that a gentler approach might be needed. I am not convinced about adding so many hardcoded colors. What other options have you considered based on inherit for example or other options @nidhidhandhukiya?