Remove unnecessary div wrapper on overflow menu

Unordered lists can be absolute positioned down to IE 7.
Outdated selector `.vectorMenu ul` remains for a release cycle
until HTML cache is renewed.

Bug: T209558
Change-Id: Id18ca9a8d705572b1f7e17920ef52b80e9aec373
This commit is contained in:
Volker E 2018-11-14 17:18:06 -08:00
parent 8d7fa67747
commit da6d4eb280
2 changed files with 20 additions and 20 deletions

View file

@ -162,15 +162,18 @@
}
.vectorMenu .menu {
list-style: none none;
background-color: @body-background-color;
clear: both;
// Match the width of the dropdown "heading" (the tab)
min-width: 100%;
position: absolute;
top: 2.5em;
left: -1px;
background-color: @body-background-color;
margin: 0;
border: 1px solid #a2a9b1;
border-top-width: 0;
clear: both;
padding: 0;
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
text-align: left;
display: none;
@ -187,6 +190,7 @@
display: block;
}
// FIXME: `.vectorMenu ul` can be removed with purged HTML cache
.vectorMenu ul {
list-style: none none;
padding: 0;

View file

@ -357,15 +357,13 @@ class VectorTemplate extends BaseTemplate {
<h3 id="p-variants-label">
<span><?php echo htmlspecialchars( $variantLabel ) ?></span>
</h3>
<div class="menu">
<ul>
<?php
foreach ( $this->data['variant_urls'] as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
?>
</ul>
</div>
<ul class="menu">
<?php
foreach ( $this->data['variant_urls'] as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
?>
</ul>
</div>
<?php
break;
@ -401,15 +399,13 @@ class VectorTemplate extends BaseTemplate {
<h3 id="p-cactions-label"><span><?php
$this->msg( 'vector-more-actions' )
?></span></h3>
<div class="menu">
<ul<?php $this->html( 'userlangattributes' ) ?>>
<?php
foreach ( $this->data['action_urls'] as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
?>
</ul>
</div>
<ul class="menu"<?php $this->html( 'userlangattributes' ) ?>>
<?php
foreach ( $this->data['action_urls'] as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
?>
</ul>
</div>
<?php
break;