Make WordPress Core

Opened 3 months ago

Closed 2 months ago

Last modified 3 weeks ago

#62753 closed defect (bug) (fixed)

Twenty Twenty: Quote block font-weight inconsistency between editor and frontend

Reported by: sainathpoojary's profile sainathpoojary Owned by: poena's profile poena
Milestone: 6.8 Priority: normal
Severity: minor Version:
Component: Bundled Theme Keywords: has-patch has-testing-info commit
Focuses: ui, css Cc:

Description

There is an inconsistency in how the font-weight is applied to quote blocks ('.wp-block-quote p') in the Twenty Twenty theme.

  • In the editor, the font-weight appears as '400', which does not match the font-weight displayed on the frontend.
  • On the frontend, the font-weight inherits styles as expected, creating a mismatch between the two environments.

Steps to Reproduce:

  1. Activate the Twenty Twenty theme.
  2. Create a new post in the block editor.
  3. Add a Quote block and insert some text.
  4. Save the post and view it on the frontend.
  5. Compare the font-weight of the quote text in the editor with the frontend display.

This inconsistency can be easily observed by inspecting the styles applied to '.wp-block-quote p' in both environments.

Video: https://utfs.io/f/PL8E4NiPUWyO7ZZSqW9AWOSNT8iuxYqzcvCVIEKbQmF3njPo

Change History (8)

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


3 months ago
#1

  • Keywords has-patch added

This PR resolves a styling inconsistency for quote blocks between the editor and frontend in the Twenty Twenty theme.

Changes:

  • Updated font-weight for .wp-block-quote p from 400 to inherit.
  • Applied changes to editor-style-block.css and editor-style-block-rtl.css.

Video

https://github.com/user-attachments/assets/58c65b19-bb66-43f0-ac4a-0780fbb5439a

Trac ticket: #62753

#2 @ankitkumarshah
3 months ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8060

Environment

  • WordPress: 6.8-alpha-59560
  • PHP: 8.1.29
  • Server: nginx/1.16.0
  • Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
  • Browser: Chrome 131.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty

Actual Results

  1. ✅ Issue resolved with patch.

Additional Notes

Hi @sainathpoojary Thank you for bringing this up I was able to reproduce the issue and the patch you have provided seems to solve the issue

Supplemental Artifacts

https://utfs.io/f/TnWMEUzoUd85XhAqp5vEgz7crZATPuva36tVnG2RhqCIN5HQ

#3 @sabernhardt
3 months ago

  • Focuses css added
  • Milestone changed from Awaiting Review to 6.8
  • Summary changed from Twenty Twenty - Quote block font-weight inconsistency between editor and frontend to Twenty Twenty: Quote block font-weight inconsistency between editor and frontend
  • Version trunk deleted

The 400 font weight was in editor styles since initial commit, but I do not find it necessary on the Quote paragraph (now or with older versions such as WordPress 5.0 and 5.3). I think the line could be removed instead of changing it to inherit.

#4 @sainathpoojary
3 months ago

Thank you for the suggestion @sabernhardt! I’ve removed the font-weight: inherit. Please let me know if there’s anything else that needs attention.

#5 @krupajnanda
3 months ago

  • Keywords has-testing-info added

## Test Report
### Description
This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8060

### Environment

  • WordPress: 6.8-alpha-20250103.041139
  • PHP: 7.4.31-dev
  • Server: PHP.wasm
  • Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
  • Browser: Chrome 131.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

### Actual Results

  1. ✅ Issue resolved with patch.
Last edited 3 months ago by krupajnanda (previous) (diff)

#6 @poena
2 months ago

  • Keywords commit added

#7 @poena
2 months ago

  • Owner set to poena
  • Resolution set to fixed
  • Status changed from new to closed

In 59594:

Twenty Twenty: Correct the font weight of the quote block in the editor.

This change removes the font weight of the paragraph inside the quote block,
so that the design in the editor and the front looks the same.

Props sainathpoojary, ankitkumarshah, sabernhardt, krupajnanda.
Fixes #62753.

@sainathpoojary commented on PR #8060:


3 weeks ago
#8

Merged in Changeset - 59594

Note: See TracTickets for help on using tickets.