Opened 2 years ago
Last modified 16 months ago
#61885 new defect (bug)
Twenty Fifteen: Search Block button does not have theme's styling in the editor
| Reported by: | pitamdey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-screenshots has-test-info |
| Cc: | Focuses: | css |
Description
In Theme Twenty Fifteen, Search Block button text is lowercase in editor and uppercase in frontend
Attachments (7)
Change History (12)
#1
@
2 years 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 years ago
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
- Summary Twenty Fifteen : Search Block button text is lowercase in editor and uppercase in frontend → 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
@
2 years 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; }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Editor View