Check if suggestion is hooked to ID name

This commit is contained in:
alistair3149 2019-12-11 16:04:26 -05:00
parent b33103b60c
commit dd547503dd
3 changed files with 8 additions and 4 deletions

View file

@ -292,8 +292,8 @@ class CitizenTemplate extends BaseTemplate {
]
);
$html .= Html::hidden( 'title', $this->get( 'searchtitle' ) );
$html .= Html::label( $this->getMsg( 'search' )->text(), 'searchInput' );
$html .= $this->makeSearchInput( [ 'id' => 'searchInput' ] );
$html .= Html::label( $this->getMsg( 'search' )->text(), 'search-input' );
$html .= $this->makeSearchInput( [ 'id' => 'search-input' ] );
$html .= $this->makeSearchButton( 'go', [ 'id' => 'searchGoButton', 'class' => 'searchButton' ] );
$html .= Html::closeElement( 'form' );

View file

@ -89,6 +89,10 @@ cite {
font-style: inherit;
}
input {
font-family: @fonts;
}
fieldset {
border: 1px solid @base-80;
color: @base-30;

View file

@ -22,7 +22,7 @@
}
// Search field
#searchInput {
#search-input {
padding: 12px 15px;
width: 0;
max-width: calc(~"100vw -"@icon-box-size * 2 + @icon-padding * 4 + @margin-side );
@ -103,7 +103,7 @@
z-index: 5;
opacity: 1;
#searchInput {
#search-input {
width: 400px;
}
}