Make WordPress Core

Opened 3 years ago

Closed 52 minutes ago

Last modified 52 minutes ago

#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 :-

  1. Activate Twenty Nineteen theme.
  2. Choose Calendar block.
  3. 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)

59457.patch​ (1.3 KB ) - added by nidhidhandhukiya 3 years ago.
T19-Calendar-blocks-editor.png​ (130.2 KB ) - added by sabernhardt 58 minutes ago.
Calendar blocks with text and background colors in the editor with WordPress 7.2-beta
T19-Calendar-blocks-front.png​ (133.3 KB ) - added by sabernhardt 58 minutes ago.
the same Calendar blocks on the front end

Download all attachments as: .zip

Change History (10)

#1 @karmatosed
3 years ago

  • Keywords has-patch needs-testing added

#2 @karmatosed
2 years ago

  • Keywords needs-refresh added; needs-testing removed

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?

#3 @karmatosed
2 years ago

  • Milestone Awaiting Review → Future Release

#4 @sabernhardt
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 @sainathpoojary
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.

​Screen Recording

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

@sabernhardt
58 minutes ago

Calendar blocks with text and background colors in the editor with WordPress 7.2-beta

@sabernhardt
58 minutes ago

the same Calendar blocks on the front end

#6 @sabernhardt
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 @sabernhardt
52 minutes ago

  • Resolution fixed → worksforme
Note: See TracTickets for help on using tickets.