Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#63331 new defect (bug)

Twenty Nineteen: Calendar block font-family issue.

Reported by: viralsampat's profile viralsampat Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.0
Component: Bundled Theme Keywords: needs-patch
Focuses: ui, css Cc:

Description

Hello Team,

I have checked "Calendar" block and I found that its font-family is not appear properly into the "twentynineteen" theme.

The calendar block font-family are not same into the front-end & back-end, So, I think that it should be same at both(Front-end & Editor-end).

I have tested this into the below mentioned configurations:

  • WordPress version: WordPress 6.8.0 running
  • Theme: Twenty Fifteen
  • Browser: Google Chrome, Version 135.0.7049.96 (Official Build) (arm64)
  • Device: MacBook Air M1
  • OS: macOS 15.4.1 (24E263)
  • Gutenberg plugin: Version 20.6.0

For better understanding, here I have attached its screenshots.

Thanks,

Attachments (5)

twentynineteen_calender_block_back_end.png (181.5 KB) - added by viralsampat 3 weeks ago.
Back-end:
twentynineteen_calender_block_front_end.png (255.4 KB) - added by viralsampat 3 weeks ago.
Front-end
63331.patch (530 bytes) - added by viralsampat 3 weeks ago.
I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.
after_change_twentynineteen_calender_block_back_end.png (154.0 KB) - added by viralsampat 3 weeks ago.
After resolved issue Back-end:
after_change_twentynineteen_calender_block_front_end.png (142.7 KB) - added by viralsampat 3 weeks ago.
After resolved issue front-end:

Download all attachments as: .zip

Change History (7)

#1 @khushipatel15
3 weeks ago

place this code snippet in functions.php and see if it works.

<?php
function twenty_nineteen_custom_calendar_styles() {
    wp_enqueue_style( 'twenty-nineteen-calendar-styles', get_template_directory_uri() . '/css/calendar-styles.css' );
}
add_action( 'enqueue_block_editor_assets', 'twenty_nineteen_custom_calendar_styles' );

@viralsampat
3 weeks ago

I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.

@viralsampat
3 weeks ago

After resolved issue Back-end:

@viralsampat
3 weeks ago

After resolved issue front-end:

#2 @sabernhardt
3 weeks ago

  • Component changed from General to Bundled Theme
  • Keywords needs-patch added; 2nd-opinion needs-testing dev-feedback removed
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 6.8 to 5.0

PR 571 set the table fonts to match headings. On the front, that works for any table elements, but the editor styles only apply to Table blocks. The editor styles should be updated (SCSS and CSS), not the front.

The Calendar block was not available yet with WordPress 5.0, but the font would have been incorrect for tables in the Classic Editor at that time.

Note: See TracTickets for help on using tickets.