Adjusting the placement of header menu carets (#8618)

* this should work.

* tweaks

* Update superset/assets/src/components/Menu/Menu.jsx
This commit is contained in:
Evan Rusackas 2019-11-21 20:53:38 -08:00 committed by Maxime Beauchemin
parent 9303672121
commit a72a39502f
2 changed files with 31 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import MenuObject from './MenuObject';
import NewMenu from './NewMenu';
import UserMenu from './UserMenu';
import LanguagePicker from './LanguagePicker';
import './Menu.less';
const propTypes = {
data: PropTypes.shape({
@ -49,7 +50,7 @@ const propTypes = {
export default function Menu({ data: { menu, brand, navbar_right: navbarRight } }) {
return (
<header className="top">
<header className="top" id="main-menu">
<Navbar inverse fluid staticTop role="navigation">
<Navbar.Header>
<Navbar.Brand>

View File

@ -0,0 +1,29 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#main-menu {
.navbar .caret {
width: 1rem;
padding: 0 0 18px 0;
&:before {
position: relative;
top: -2px;
}
}
}