diff --git a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html index 3e30810d82..76a1c1f63e 100644 --- a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html +++ b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.html @@ -17,8 +17,8 @@ limitations under the License. - + @@ -42,12 +42,6 @@ limitations under the License. ul { list-style: none; } - .links { - margin-left: 1em; - } - .links .menuContainer { - display: none; - } .links > li { cursor: default; display: inline-block; @@ -55,31 +49,8 @@ limitations under the License. padding: .5em 0; position: relative; } - .links li:hover .menuContainer, - .links li:active .menuContainer { - background-color: #fff; - border-radius: 3px; - box-shadow: 0 1px 1px rgba(0, 0, 0, .3); - display: block; - left: -.5em; - padding: .5em 0; - position: absolute; - top: 2.4em; - z-index: 1000; - } - .links li ul li a:link, - .links li ul li a:visited { - color: #00e; - display: block; - padding: .3em 1em; - text-decoration: none; - white-space: nowrap; - } - .links li ul li:hover a, - .links li ul li:active a { - background-color: var(--selection-background-color); - } .linksTitle { + color: black; display: inline-block; padding-right: 1em; position: relative; @@ -121,6 +92,13 @@ limitations under the License. overflow: hidden; text-overflow: ellipsis; } + .dropdown-trigger { + text-decoration: none; + } + .dropdown-content { + background-color: #fff; + box-shadow: 0 1px 5px rgba(0, 0, 0, .3); + } @media screen and (max-width: 50em) { .bigTitle { font-size: 14px; @@ -139,16 +117,13 @@ limitations under the License. diff --git a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.js b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.js index 2f017debcf..ebeb9af1eb 100644 --- a/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.js +++ b/polygerrit-ui/app/elements/core/gr-main-header/gr-main-header.js @@ -36,7 +36,7 @@ is: 'gr-main-header', hostAttributes: { - role: 'banner' + role: 'banner', }, properties: {