Opened 2 months ago
Last modified 8 weeks ago
#61885 new defect (bug)
Twenty Fifteen: Search Block button does not have theme's styling in the editor
Reported by: | pitamdey | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-screenshots has-testing-info |
Focuses: | css | Cc: |
Description
In Theme Twenty Fifteen, Search Block button text is lowercase in editor and uppercase in frontend
Attachments (7)
Change History (11)
#1
@
2 months ago
- Keywords has-testing-info added
Hi,
Test Report
Patch tested: https://core.trac.wordpress.org/attachment/ticket/61885/61885.patch
Environment:
OS: Windows
PHP: 8.2.12
WordPress: 6.6.1
Browser: Chrome
Theme: Twenty Fifteen (Version: 3.8)
Plugins: None activated
Actual Results:
✅ Before patch:
Backend: https://prnt.sc/hInRByb1ruU-
Frontend: https://prnt.sc/VFCDjlBcDP_t
✅ After patch:
Backend: https://prnt.sc/hInRByb1ruU-
Frontend: https://prnt.sc/E4kVg9ED-tdM
✅ Patch working well as desired solution.
#2
@
2 months ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Summary changed from Twenty Fifteen : Search Block button text is lowercase in editor and uppercase in frontend to Twenty Fifteen: Search Block button does not have theme's styling in the editor
The Search button's colors and font are also wrong in the editor.
The editor-blocks
stylesheet needs styles to match button
styles on the front end.
/* Search */ .wp-block-search__button { background-color: #333; color: #fff; font-family: "Noto Sans", sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; }
#4
@
8 weeks ago
These styles could fit better in the Widgets section (between Latest Posts and Colors).
Considering other elements of the Search block:
- The label matches the front.
- The input has a significantly different
font-family
. The editor appearance might benefit from (some of) these rules:.wp-block-search .wp-block-search__input { border-radius: 0; color: rgba(51, 51, 51, 0.7); font-family: "Noto Sans", sans-serif; font-size: 1em; padding: 0.5em; }
Editor View