Make WordPress Core

Opened 18 months ago

Last modified 3 months ago

#58499 new defect (bug)

Twenty Twenty: 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: css Cc:

Description (last modified by sabernhardt)

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 chosen 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 understanding.
Video URL :- https://share.cleanshot.com/plqBT1cn6hMbRR5g6Grz

Attachments (2)

58499.diff (1.2 KB) - added by thakordarshil 18 months ago.
Patch Added
58499.2.diff (1.6 KB) - added by shwetabathani2312 18 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 (6)

#1 @nidhidhandhukiya
18 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
18 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 18 months ago by thakordarshil (previous) (diff)

@thakordarshil
18 months ago

Patch Added

@shwetabathani2312
18 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
17 months ago

  • Keywords has-patch needs-testing-info added

#4 @sabernhardt
3 months ago

  • Description modified (diff)
  • Focuses css added
  • Summary changed from Twenty Twenty theme table block having issue with color to Twenty Twenty: Table block having issue with color

Related: #48684

Note: See TracTickets for help on using tickets.