Make WordPress Core

Opened 8 months ago

Last modified 6 months ago

#63347 new defect (bug)

Twenty Fourteen: Table and Calendar blocks do not apply font size from user settings

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

Description

Steps to reproduce the issue :-

  1. Activate Twenty Fourteen theme.
  2. Choose Table block.
  3. Add some text.
  4. Change the font size.

You can able to see there is no difference after changing the font size for both editor and front side.

Attachments (2)

63347.patch (844 bytes) - added by nidhidhandhukiya 8 months ago.
63347-b.patch (988 bytes) - added by abcd95 8 months ago.

Download all attachments as: .zip

Change History (6)

#1 @Presskopp
8 months ago

  • Keywords has-patch added

#2 @sabernhardt
8 months ago

  • Keywords needs-patch added; has-patch removed
  • Summary changed from Twenty Fourteen - Table block have font size issue in editor and front side both. to Twenty Fourteen: Table and Calendar blocks do not apply font size from user settings
  • Version 6.8 deleted

63347.patch would change the theme's default font size for any table element in the content area or comments.

When users choose another size in the block settings, both Table and Calendar blocks should override the default 14px.

@abcd95
8 months ago

#3 @sainathpoojary
6 months ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://core.trac.wordpress.org/attachment/ticket/63347/63347-b.patch

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.28
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 136.0.0.0
  • OS: macOS
  • Theme: Twenty Fourteen 4.2
  • MU Plugins: None activated
  • Plugins:
    • Hello Dolly 1.7.2
    • Test Reports 1.2.0

Actual Results

❌ Issue not resolved with patch.

Additional Notes

After applying this patch, the table font size defaults to 16px instead of the intended 14px, since font-size: inherit causes it to fall back to the browser default (html { font-size: 16px; }).
This results in a visual change from the original theme design. Ideally, the theme should still apply 14px by default, but allow user-defined block font sizes to override it.

Supplemental Artifacts

Before:

https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOGVaU1dNEeschquBM6yNU3LCFxWSw4rTfmliR

After:

https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyO53LSE6dD45jTOVwQ7E8qrYChcamIHyl0XDp9

This ticket was mentioned in PR #8886 on WordPress/wordpress-develop by @sainathpoojary.


6 months ago
#4

  • Keywords has-patch added; needs-patch removed

Trac ticket: #63347

Note: See TracTickets for help on using tickets.