Opened 17 months ago
Last modified 16 months ago
#61594 new defect (bug)
Twenty Thirteen: Search block button background does not reflect block setting of solid color
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | 6.5.5 |
| Component: | Bundled Theme | Keywords: | dev-feedback has-patch changes-requested |
| Focuses: | ui, css | Cc: |
Description
Hello Team,
I have reviewed "Search" block and found that when we trying to change it's button background color using block setting then it not would not change on frontend side. It appear only on editor side.
So, I think that it should be same on both( Editor & Front-end ) sides.
For more understanding here, I have attached its screenshots:
Thanks,
Attachments (5)
Change History (9)
@
17 months ago
I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.
#2
@
17 months ago
- Keywords changes-requested added
- Summary changed from Twenty Thirteen Theme: The search block button background not change when we try to change it using block settings. to Twenty Thirteen: Search block button background does not reflect block setting of solid color
The patch would change the front end to be like the incorrect editor styles.
- The default Search block should continue to show the white text on an orange gradient.
- Twenty Thirteen has a
blocks.cssfile for block-specific styles. - The text color cannot be set to a specific value when the background inherits an unknown value.
When someone sets the background to a solid color, the front end only needs to remove the background image.
.wp-block-search__button.has-background:not([class*="-gradient"]) {
background-image: none;
}
Twenty Thirteen has some other issues with the Search block that might not fit the scope of this ticket.
- The theme's editor styles do not include the
buttonor related elements. - Search buttons with a theme preset gradient selection would still have the default orange gradient in
hoverandfocusstates. - The input field takes the
1px solid #949494border fromblock-library/style.css, but the theme sets the border to2px solid #c3c0abon thefocusstate. The simplest—not necessarily the best—edit might be to replaceborder: 2px solid #c3c0abwithborder-color: #c3c0abso the width does not change due to a higher specificity.input:focus, textarea:focus { border-color: #c3c0ab; outline: 0; }
Back-end