mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Remove extra <span> from Vector tabs
No longer needed as of I8237976e0587. Bug: T236410 Change-Id: I5a59c136de4572e5f11b52cc11bc93251c972369
This commit is contained in:
parent
481c90798e
commit
a5fe72696b
|
@ -280,9 +280,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
<ul<?php $this->html( 'userlangattributes' ) ?>>
|
||||
<?php
|
||||
foreach ( $this->data['namespace_urls'] as $key => $item ) {
|
||||
echo $this->makeListItem( $key, $item, [
|
||||
'vector-wrap' => true,
|
||||
] );
|
||||
echo $this->makeListItem( $key, $item );
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
@ -332,7 +330,6 @@ class VectorTemplate extends BaseTemplate {
|
|||
<?php
|
||||
foreach ( $this->data['view_urls'] as $key => $item ) {
|
||||
echo $this->makeListItem( $key, $item, [
|
||||
'vector-wrap' => true,
|
||||
'vector-collapsible' => true,
|
||||
] );
|
||||
}
|
||||
|
@ -444,18 +441,6 @@ class VectorTemplate extends BaseTemplate {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function makeLink( $key, $item, $options = [] ) {
|
||||
$html = parent::makeLink( $key, $item, $options );
|
||||
// Add an extra wrapper because our CSS is weird
|
||||
if ( isset( $options['vector-wrap'] ) && $options['vector-wrap'] ) {
|
||||
$html = Html::rawElement( 'span', [], $html );
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue