Opened 15 months ago
Closed 15 months ago
#58526 closed defect (bug) (fixed)
Twenty Fifteen: Button Letter Case is Not Working
Reported by: | thakordarshil | Owned by: | |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 6.2.2 |
Component: | Bundled Theme | Keywords: | has-patch has-screenshots |
Focuses: | css | Cc: |
Description
In Twenty Fifteen theme when we add button & try to add letter case in frontend & Backend (ex: Uppercase , Capitalize or lower case)
Steps to Reproduce the Issue :
- Activate Twenty Fifteen theme.
- Add Button in Any Page
- Add Letter Case in Button Block
Video Link: https://drive.google.com/file/d/1H3PLl5QFPFVdWCsU1v8UIwT70GjchiPB/view
Attachments (10)
Change History (22)
#1
@
15 months ago
Hi @thakordarshil
I have tested patch with wordpress 6.2.2 & Patch is working fine
#2
@
15 months ago
58526.diff could fix blocks where the user chose something other than uppercase, but it also changes every other Button block created with this theme.
The Letter Case control does not work in any theme that assigns a text-transform
property to the .wp-block-button__link
element, including:
- Twenty Fourteen
- Twenty Fifteen
- Twenty Sixteen
- Twenty Twenty
The default Button block styles probably could add the following to ensure support in any theme:
.wp-block-buttons[style*="text-transform"] .wp-block-button__link, .wp-block-button[style*="text-transform"] .wp-block-button__link { text-transform: inherit; }
Both selectors are necessary. The text-transform
style is added to .wp-block-buttons
when the Buttons block only has one Button block; multiple Button blocks in the same Buttons block get their own style attribute on the .wp-block-button
container.
In case all themes that use uppercase should support the user control individually, I can add that to a patch for the bundled themes.
@
15 months ago
supporting Letter Case control in Twenty Fourteen, Twenty Fifteen, Twenty Sixteen and Twenty Twenty
#3
@
15 months ago
- Keywords has-screenshots added
@sabernhardt
I have tested this patch: https://core.trac.wordpress.org/attachment/ticket/58526/58526.1.diff
for twentyfifteen theme & it's working fine.
Thanks.
#4
@
15 months ago
- Keywords needs-testing added
Thank you, @thakordarshil, for the ticket.
Hey, @panchalhimani711, could you please review all the themes mentioned by @sabernhardt and provide a report?
The themes to check are:
- Twenty Fourteen
- Twenty Fifteen
- Twenty Sixteen
- Twenty Twenty
#5
@
15 months ago
@mukesh27
Test Report for - https://core.trac.wordpress.org/attachment/ticket/58526/58526.1.diff Patch.
Theme - Twenty Fourteen
Backend :
=======
Before Patch Backend : https://prnt.sc/_BcvUA_2fdUa
After Patch Backend : https://prnt.sc/4l2ew1jAYOEF
Frontend :
=======
Before Patch Frontend : https://prnt.sc/sj_lyve3VBdi
After Patch Frontend : https://prnt.sc/caFy7_r0QmWC
Theme - Twenty Fifteen
Backend :
=======
Before Patch Backend: https://prnt.sc/qpSN3cpsdKCN
After Patch Backend : https://prnt.sc/B_erZQ6mMvY8
Frontend :
=======
Before Patch Frontend : https://prnt.sc/bvUBTE_zP2Rm
After Patch Frontend : https://prnt.sc/68EjnkLapsxl
Theme - Twenty Sixteen
Backend :
========
Before Patch Backend : https://prnt.sc/PJdafJDoVrzI
After Patch Backend : https://prnt.sc/mI8AdmjXI7mH
Frontend :
========
Before Patch Frontend : https://prnt.sc/BncoQgCapBHR
After Patch Frontend : https://prnt.sc/3wd_UZby68JM
Theme - Twenty Twenty
Backend :
=======
Before Patch Backend : https://prnt.sc/RCTYc8xKM3LE
After Patch Backend : https://prnt.sc/_jlZFP_M2b5p
Frontend :
========
Before Patch Frontend : https://prnt.sc/621EF2GHrL1Q
After Patch Frontend : https://prnt.sc/HoI2UxjhWpQ7
https://core.trac.wordpress.org/attachment/ticket/58526/58526.1.diff
Patch is Working fine in all mentioned theme
Thanks.
Patch Added