#58443 closed defect (bug) (fixed)
Twenty Nineteen Button is having issue with line height.
Reported by: | nidhidhandhukiya | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.2.2 |
Component: | Bundled Theme | Keywords: | has-testing-info has-patch has-screenshots |
Focuses: | Cc: |
Description
Steps to reproduce the issue :-
- Activate Twenty Nineteen theme.
- Choose Button block.
- Add some text.
- Apply line height.
You can able to see when you apply line height it will add space on above the button.
I have attached video for better unnderstanding.
Video URL :- https://share.cleanshot.com/Sy247vzrHM6gWH69y5D1
Attachments (2)
Change History (45)
This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.
16 months ago
#5
@
16 months ago
@monzuralam
Test Report for - https://core.trac.wordpress.org/attachment/ticket/58443/58443.patch Patch.
Environment:
============
WordPress - V6.2.2
Theme - Twenty Nineteen
Os: Windows
Browser: Chrome
Backend:
========
Before Patch Backend: https://prnt.sc/VoB3ZIbiqwZO
After Patch Backend : https://prnt.sc/FIOdY2k8XG-q
Frontend:
=========
Before Patch Frontend: https://prnt.sc/plXeZ-xUnuRt
After Patch Frontend : https://prnt.sc/UZacP-yMFEKm
https://core.trac.wordpress.org/attachment/ticket/58443/58443.patch patch is working fine.
#6
@
16 months ago
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/58443/58443.patch
Environment
- OS: macOS 12.6.7
- Web Server: Nginx
- PHP: 7.4.33
- WordPress: 6.3-beta3-56130-src
- Browser: Brave - Version 1.52.129 Chromium: 114.0.5735.198 (Official Build) (x86_64)
- Theme: Twenty Nineteen
- Active Plugins: - No Active Plugins
Actual Results
- ✅ Issue resolved with patch.
Supplemental Artifacts
Before patch backend - https://prnt.sc/MXqw7vmabIZb
After patch backend - https://prnt.sc/EzQ4gft0tHZZ
Before patch frontend - https://prnt.sc/M_UeEnkMFhZN
After patch frontend - https://prnt.sc/MYSuzufmPrSo
#7
@
13 months ago
- Keywords commit added; needs-testing removed
- Owner set to karmatosed
- Status changed from new to assigned
I am going to commit this as can see it fixed with the patch, thank you.
This ticket was mentioned in Slack in #core-committers by costdev. View the logs.
13 months ago
#12
@
13 months ago
- Owner karmatosed deleted
- Status changed from reopened to assigned
On the basis of consulting regarding some failed tests this needs a little more of a solid fix at the SASS file level. Just fixing the CSS means that tests fail for example for the rtl files which shouldn't be changed.
@nidhidhandhukiya I wanted to give you the opportunity to work on this patch considering you originally did but happy to also tackle this if not.
cc @costdev and @spacedmonkey for those who aided diagnosing why the tests were not passing regarding this issue.
#13
@
13 months ago
- Keywords commit removed
Using Switching a specific value to inherit
was not the best way to fix custom line-height
.
Correction: When the theme—or block library styles—specify the desired value on a parent element, then using inherit
could be highly appropriate.
On the front end, all button-like elements have had a line-height
of 1.2 since initial commit, and it needs to stay that value when users do not select their own. This ticket did not change the front-end style.css
and the RTL was reverted, so the current state is still only wrong with a custom line-height
.
The editor's value of 1.8 did not match the front, but removing the entire line can be better than changing to inherit
.
Any Some of the customizable properties probably could be moved to the wp-block-button
or wp-block-buttons
element instead of the link.
Correction: The em-based font-size
is one property that probably should not be moved to another element because that would change the size for anyone who has set a value in custom CSS or who is satisfied with the relative difference in size using the block setting.
If tests are still giving any errors, that might be related to the missing space after the colon in style-editor.scss
.
#15
@
13 months ago
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/58443/58443.1.patch
Environment
OS: Windows
PHP: 8.1.9
WordPress: 6.3.1
Browser: Chrome
Theme: Twenty Nineteen
Plugins: None activated
Actual Results:
Before Patch:
✅ In the editor and frontend, space showing above button when line height applied.
Backend: https://prnt.sc/lQl2hEgLCwi8
Frontend: https://prnt.sc/Jeo1j1zraYLL
After Patch
✅ In the editor and frontend, space removed above button when line height applied.
Backend: https://prnt.sc/WtJaVDtD0I7m
Frontend: https://prnt.sc/9CH_svNz2k2H
#16
@
12 months ago
- Keywords changes-requested added
@nidhidhandhukiya thank you for reporting and working on this! Would you be able to review #comment:13 and make changes to the patch?
This ticket was mentioned in PR #5429 on WordPress/wordpress-develop by fnpen.
12 months ago
#17
I moved line-height default definition from .wp-block-button__link
to .wp-block-button
, as a result, it allowed for overriding by style and block editor.
Trac ticket: https://core.trac.wordpress.org/ticket/58443
#18
@
12 months ago
@nicolefurlan, I made changes according to the #comment:13.
This ticket was mentioned in PR #5431 on WordPress/wordpress-develop by @fnpen.
12 months ago
#19
I moved line-height default definition from .wp-block-buttonlink to .wp-block-button, as a result, it allowed for overriding by style and block editor.
Trac ticket: [)](https://core.trac.wordpress.org/ticket/58443 [core.trac.wordpress.org/ticket/58443]
This ticket was mentioned in Slack in #core-test by oglekler. View the logs.
12 months ago
#22
@
12 months ago
Pinging previous testers to see if they can test the updated patch :)
cc @shailu25, @hrrarya, @harshgajipara
#23
@
12 months ago
@poena pinging you to see if you could rally come folks to test this one out so it could potentially make it into RC1 next week :)
#24
@
12 months ago
Test Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/5431
Environment:
WordPress - 6.4 beta2
OS - Windows
Browser - Chrome
Theme: Twenty Nineteen
PHP - 8.1.2
Active Plugin - None
Actual Results:
- After applying the patch line height issue will be resolved.✅
Screenshots:
Back-End: https://prnt.sc/ZDqvaBTbW_Lr
Front-End:
Before Patch Frontend : https://prnt.sc/VIB-qf5LC_8b
After Patch Frontend : https://prnt.sc/qOjDtEb6rO1X
@sabernhardt commented on PR #5431:
12 months ago
#25
It is very late in this release cycle for revising style-editor.scss
too, but could you set line-height: $font__line-height-heading;
on .wp-block-button
and remove the line-height
from .wp-block-button__link
there for consistency?
#26
@
12 months ago
I needed to edit two statements in #comment:13 because they were not entirely accurate.
Thanks for the newer patch. PR 5431 is an improvement but not thorough. It adds support for the line height setting on the front end when applied to individual Button blocks, yet not when trying to set a line height on the parent Buttons block. Whether that is good enough or should be applied to .wp-block-buttons
instead, I would like at least the same change in the theme's editor styles.
For quicker testing, you could copy and paste a set of Button blocks. The first set focuses on the default typography styles and custom line height, and the second set includes several other custom typography options (Twenty Nineteen still would not support a custom font weight or text decoration).
#27
@
12 months ago
- Keywords changes-requested added
- Milestone changed from 6.4 to 6.5
@fnpen would you be able to update your PR?
I'm going to bump this to 6.5 since this patch needs changes and it will need further testing.
This ticket was mentioned in PR #6069 on WordPress/wordpress-develop by @sabernhardt.
8 months ago
#28
Moves line-height
to Buttons container and removes the duplicate outline
#29
@
8 months ago
- Keywords changes-requested removed
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6069.
Environment
- OS: macOS 14.2.1
- Web Server: Nginx
- PHP: 8.1.23
- WordPress: 6.5-alpha-56966-src
- Browser: Chrome ersion 121.0.6167.160
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
- The default line height is correct in both the editor and front.
- The highlight can be adjusted both on the buttons block and button block:
For example the line height on the buttons can be 2.5 while an individual button inside it can have a line height set to 0. Both line heights are correct in the editor and front.
#30
@
8 months ago
Test Report
Patch tested: PR 6069
Environment
- WordPress: 6.5-alpha-56966-src
- PHP: 8.2.15
- Server: nginx/1.25.3
- Database: mysqli (Server: 8.0.36 / Client: mysqlnd 8.2.15)
- Browser: Chrome 121.0.0.0
- OS: macOS
- Theme: Twenty Nineteen 2.7
- MU Plugins: None activated
- Plugins:
- Test Reports 1.1.0
Actual Results
Line height issue resolved with patch ✅
@audrasjb commented on PR #6069:
8 months ago
#32
I restarted the jobs, since the Theme ZIP Build test for Twenty Nineteen was failing
@audrasjb commented on PR #6069:
8 months ago
#33
This test is still failing
#34
@
8 months ago
@poena @sabernhardt looks like the Theme ZIP Build test for Twenty Nineteen is failing
8 months ago
#35
Do I understand correctly from the error report that the rtl css files need to be re-built from the scss files and added to the PR?
@sabernhardt commented on PR #6069:
8 months ago
#36
Yes, the RTL stylesheet needed to be built.
#37
@
8 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from assigned to closed
In 57599:
@SergeyBiryukov commented on PR #5431:
8 months ago
#38
Thanks for the PR! Merged in r57599.
@SergeyBiryukov commented on PR #6069:
8 months ago
#39
Thanks for the PR! Merged in r57599.
This ticket was mentioned in PR #6095 on WordPress/wordpress-develop by @sabernhardt.
8 months ago
#40
Restores transition
property to a single line, as its was before r57599.
#41
@
8 months ago
- Keywords commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
reopening to fix tests
@SergeyBiryukov commented on PR #6095:
8 months ago
#43
Thanks for the PR! Merged in r57604.
@nidhidhandhukiya, Thanks for your ticket.
We are looking for testing report. More than one test report is a helpful way to validate across different environments.