Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#58499 new defect (bug)

Twenty Twenty theme table block having issue with color

Reported by: nidhidhandhukiya's profile nidhidhandhukiya Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 6.2.2
Component: Bundled Theme Keywords: has-patch needs-testing-info
Focuses: Cc:

Description

Steps to reproduce the issue.

  1. Activate Twenty Twenty theme.
  2. Take table block.
  3. Add some text.
  4. Apply background color black or pink.
  5. Now apply any color to the text.

You can able to see it will not take the value of that choosen color if black or pink is set as a background color for editor side.
Front side it is working fine it is having issue only in editor side.

I have attached video for better understandng.
Video URL :- https://share.cleanshot.com/plqBT1cn6hMbRR5g6Grz

Attachments (2)

58499.diff (1.2 KB) - added by thakordarshil 4 months ago.
Patch Added
58499.2.diff (1.6 KB) - added by shwetabathani2312 4 months ago.
@thakordarshil Need to update code on functions.php as well as it is working on backend but causing issue on frontend so.

Download all attachments as: .zip

Change History (5)

#1 @nidhidhandhukiya
4 months ago

The reason behind this issue is the below css

.has-background.has-primary-background-color:not(.has-text-color), .has-background.has-primary-background-color *:not(.has-text-color), .has-background.has-accent-background-color:not(.has-text-color), .has-background.has-accent-background-color *:not(.has-text-color) {
    color: #fff;
}

If we remove that the issue is resolved.

#2 @thakordarshil
4 months ago

@nidhidhandhukiya
Instead of removing css
Just need small fix

.has-background.has-primary-background-color:not(.has-text-color), .has-background.has-primary-background-color:not(.has-text-color) *, .has-background.has-accent-background-color:not(.has-text-color), .has-background.has-accent-background-color:not(.has-text-color) * {
    color: #fff;
}
Last edited 4 months ago by thakordarshil (previous) (diff)

@thakordarshil
4 months ago

Patch Added

@shwetabathani2312
4 months ago

@thakordarshil Need to update code on functions.php as well as it is working on backend but causing issue on frontend so.

#3 @thakordarshil
3 months ago

  • Keywords has-patch needs-testing-info added
Note: See TracTickets for help on using tickets.