-
Notifications
You must be signed in to change notification settings - Fork 834
Instant Search: fix many theme incompatibilities #13602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
gibrown
merged 10 commits into
instant-search-master
from
add/instant-search-theme-support
Oct 8, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f5528f0
Inserting search results into multiple themes working
gibrown e9711a3
Get search boxes working in 2013 and improve css and styling.
gibrown 8ed3a6d
Rename search-widget to search-app
gibrown 6e2019f
Get search box working with twentyten
gibrown d6e104e
Give up on getting the jp search icon to display. very tricky.
gibrown 3302b75
Merge remote-tracking branch 'origin/instant-search-master' into add/…
gibrown 89a6adb
Fixes based on PR review.
gibrown 4474d02
Merge branch 'instant-search-master' into add/instant-search-theme-su…
gibrown e6423b5
Remove stub css code.
gibrown cc2c6b9
Merge remote-tracking branch 'origin/instant-search-master' into add/…
gibrown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** @jsx h */ | ||
|
||
/** | ||
* External dependencies | ||
*/ | ||
import { h, Component } from 'preact'; | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
class SearchBox extends Component { | ||
render() { | ||
const { query, onChangeQuery, appRef } = this.props; | ||
|
||
return ( | ||
<div className={ 'jp-instant-search__box' }> | ||
{ /* TODO: Add support for preserving label text */ } | ||
<span className="screen-reader-text">{ __( 'Search', 'jetpack' ) }</span> | ||
<input | ||
className="search-field jp-instant-search__box-input" | ||
onInput={ onChangeQuery } | ||
ref={ appRef } | ||
placeholder={ __( 'Search…', 'jetpack' ) } | ||
type="search" | ||
value={ query } | ||
/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default SearchBox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* apply to all the inputs to try and pick up any theme styling */ | ||
.jp-instant-search__box input { | ||
border-radius: 2px; | ||
font-size: 14px; | ||
height: 26px; | ||
width: 100%; | ||
line-height: 1.2em; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
modules/search/instant-search/components/search-results.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.