Skip to content

Commit

Permalink
Merge pull request #218 from GSA/fix-search-default-value
Browse files Browse the repository at this point in the history
update search input text value and color; bump version
  • Loading branch information
rshewitt authored Dec 4, 2024
2 parents c1a5cf9 + 7de3e7f commit 3fb3e73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2470,6 +2470,7 @@ article.module.prose h3 {
height: auto;
padding: 14px 10px;
width: 100%;
color: #595959
}
.search-giant button {
background: transparent url('/../../base/images/icon-search-27x26.png') no-repeat scroll center center;
Expand Down
2 changes: 1 addition & 1 deletion ckanext/datagovtheme/templates/package/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% set search_placeholder = 'Search collection...' if request.args.collection_package_id else 'Search datasets...' %}
<span class="control-group search-giant">
<label for="search-big" class="hide">{{ _('Search datasets') }}</label>
<input id="search-big" type="text" class="search" name="q" value="{{ c.q }}" autocomplete="off" placeholder="{{ search_placeholder }}" onblur="if(value=='') value = 'Search datasets...'" onfocus="if(value=='Search datasets...') value = ''"/>
<input id="search-big" type="text" class="search" name="q" value="{{ c.q }}" autocomplete="off" placeholder="{{ search_placeholder }}" onblur="if(value=='') value = '{{ search_placeholder }}'" onfocus="if(value=='{{ search_placeholder }}') value = ''"/>
<button type="submit" value="search">{{ _('Submit') }}</button>
</span>
{{ h.snippet('snippets/sort_by.html', sort=c.sort_by_selected) }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="ckanext-datagovtheme",
version="0.2.35",
version="0.2.36",
description="CKAN Extension to manage data.gov theme",
long_description=long_description,
classifiers=[
Expand Down

0 comments on commit 3fb3e73

Please sign in to comment.