Fixed incorrect DOM structure

This commit is contained in:
alistair3149 2020-06-04 13:16:51 -04:00
parent 72ab186ccd
commit 65a364e3ca
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 4 additions and 5 deletions

View file

@ -143,11 +143,12 @@ class CitizenTemplate extends BaseTemplate {
'html-input' => $this->makeSearchInput( [ 'id' => 'search-input' ] ), 'html-input' => $this->makeSearchInput( [ 'id' => 'search-input' ] ),
'html-button-search' => $this->makeSearchButton( 'html-button-search' => $this->makeSearchButton(
'image', 'image',
[ 'id' => 'search-button', [
'id' => 'search-button',
'src' => $this->getSkin()->getSkinStylePath( 'resources/images/icons/search.svg' ), 'src' => $this->getSkin()->getSkinStylePath( 'resources/images/icons/search.svg' ),
] ]
), ),
'msg-search' => $this->msg( 'search' ), 'msg-search' => $this->getMsg( 'search' )->text(),
'page-title' => SpecialPage::getTitleFor( 'Search' )->getPrefixedDBkey(), 'page-title' => SpecialPage::getTitleFor( 'Search' )->getPrefixedDBkey(),
]; ];
return $props; return $props;

View file

@ -7,9 +7,7 @@
<aside class="mw-bottombar"> <aside class="mw-bottombar">
<nav class="mw-bottombar-buttons"> <nav class="mw-bottombar-buttons">
<div class="citizen-ui-icon" id="citizen-ui-button"> <div class="citizen-ui-icon" id="citizen-ui-button">
<a href="{{html-citizen-bottombar-button-href}}" title="{{html-citizen-bottombar-button-title}}" rel="noopener noreferrer" target="_blank"> <a href="{{html-citizen-bottombar-button-href}}" title="{{html-citizen-bottombar-button-title}}" rel="noopener noreferrer" target="_blank">{{html-citizen-bottombar-button-text}}</a>
{{html-citizen-bottombar-button-text}}
</a>
</div> </div>
</nav> </nav>
</aside> </aside>