#59996 closed defect (bug) (fixed)
Twenty Twenty: Calendar block does not apply font size from block option
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 6.1 |
Component: | Bundled Theme | Keywords: | has-patch has-testing-info has-screenshots commit |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue.
- Activate Twenty Twenty theme.
- Choose Calendar block.
- Change the font size.
Now check the both the side editor and frontend.
You can able to see that whatever the font size you have choosen that is applied n editor side but there is no difference in font size in the front side.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/FJGNHTjxP6KzXkJ12bfx
Attachments (6)
Change History (26)
This ticket was mentioned in Slack in #core-test by ankit-k-gupta. View the logs.
16 months ago
#4
@
16 months ago
Patch Used - https://core.trac.wordpress.org/attachment/ticket/59996/59996.patch
Environment-
OS: Windows 10
Web Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f
PHP: 8.0.29
WordPress: 6.4.2
Browser: Google Chrome
Theme: Twenty-Twenty
Test result-
The patch works as expected.
@
16 months ago
before the patch, the font size for any Calendar block is 1.8rem at a screen width larger than 700 pixels
@
16 months ago
with the patch, the default font size increases to 2.1rem while custom sizes are supported
#5
@
16 months ago
- Keywords changes-requested added; needs-testing removed
- Summary changed from Twenty Twenty theme calendar block is having issue with font size. to Twenty Twenty: Calendar block does not apply font size from block option
Related: #56157
Since its initial version, Twenty Twenty has specified a smaller size for tables, either 1.6rem for small screens or 1.8rem for screens wider than 700 pixels.
If the Calendar block is ever inserted inside a post, inherit
would increase the font size for any Calendar block that does not specify its own size. The .entry-content
class sets the size at 1.8rem or 2.1rem for larger screens.
In the widget area, where the Calendar block usually belongs, the proposed change would set the default font size to 1.8rem for all screens.
To avoid unexpected changes, the patch should only apply when the user selects a font size for the block.
#7
@
16 months ago
Test report for https://core.trac.wordpress.org/attachment/ticket/59996/59996.patch
Environment:
===========
PHP: 8.1.9
WordPress: 6.4
OS: Windows
Server: nginx
Theme: Twenty Twenty
Plugin: No Plugin
Screenshots:
Before Patch
Backend: https://prnt.sc/-tPBJjH7qnNB
Frontend: https://prnt.sc/ArS10T9x-yTS
After Patch
Backend: https://prnt.sc/-tPBJjH7qnNB
Frontend: https://prnt.sc/8hcvdm6OeK77
After Applying patch it's working well.
#8
@
13 months ago
- Keywords changes-requested removed
Updated Patch as per suggested in above comment.
#10
@
9 months ago
- Keywords needs-refresh added
- Owner karmatosed deleted
Unfortunately, there seems to be something up with the current patch applying, so I'm going to suggest it is checked for refresh; thanks.
#12
@
9 months ago
@shailu25 does your patch take into account the update by @sabernhardt though? Unless I am mistaken it might not. I am referring to this specifically.
If the Calendar block is ever inserted inside a post, inherit would increase the font size for any Calendar block that does not specify its own size. The .entry-content class sets the size at 1.8rem or 2.1rem for larger screens.
#14
@
9 months ago
@karmatosed font-size: inherit Will apply only when custom font size selected in the backend side Calendar Block (As per @sabernhardt Suggested)
.wp-block-calendar[class*="-font-size"] table, .wp-block-calendar[style*="font-size"] table { font-size:inherit; }
else It will show default font size.
#15
@
9 months ago
- Focuses css added
- Milestone changed from Awaiting Review to Future Release
Thanks! Patch 3 does what I had suggested, though I disagree with the placement and the changes might not be complete.
- These styles would fit best in the Blocks section, between Button and Columns block styles.
- In addition to the
table
element, the navigation probably should inherit the same font size. - The rule should include a space after the colon.
- The
/* Block ---- */
section-header comments are set to the same length (adding or removing hyphens as necessary) in Twenty Twenty.
@
9 months ago
inherits font size for both table
and navigation when Calendar block specifies a different size
#16
@
9 months ago
- Keywords needs-testing added; changes-requested removed
I'll reopen #56157 for the Table block.
#17
@
9 months ago
- Owner set to karmatosed
- Resolution set to fixed
- Status changed from assigned to closed
In 58819:
#18
@
9 months ago
- Keywords commit added; needs-testing removed
- Milestone changed from Future Release to 6.7
Thank you everyone, I tested it and moved to commit. I also closed the table block one with a note on commit as a result.
Testing of: https://core.trac.wordpress.org/attachment/ticket/59996/59996.patch
Tested in the below environment:
PHP: 8.1.9
WordPress: 6.4
Theme: Twenty Twenty
Browser: Chrome
Plugin: No plugins
Before Patch Screenshot:
Backend: https://prnt.sc/4WqBl0Q9wpid
Frontend: https://prnt.sc/QQCKgIgFh01k
After-Patch Screenshot:
Backend: https://prnt.sc/pw4lvLtWm1xY
Frontend: https://prnt.sc/c9noJG3wvc0m
After the patch, you can see the difference in font size on the front side.
As tested, Patch is working properly.