Skip to content

Commit

Permalink
fix: Regression on Data and Alerts & Reports Headers (apache#19850)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomedina248 authored and philipher29 committed Jun 9, 2022
1 parent ef5595b commit bee364b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions superset-frontend/src/views/components/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const StyledHeader = styled.div`
padding-left: 10px;
}
.menu {
background-color: white;
background-color: ${({ theme }) => theme.colors.grayscale.light5};
.ant-menu-horizontal {
line-height: inherit;
.ant-menu-item {
Expand All @@ -88,7 +88,8 @@ const StyledHeader = styled.div`
}
.menu .ant-menu-item {
li {
li,
div {
a,
div {
font-size: ${({ theme }) => theme.typography.sizes.s}px;
Expand All @@ -98,6 +99,10 @@ const StyledHeader = styled.div`
margin: 0;
padding: ${({ theme }) => theme.gridUnit * 4}px;
line-height: ${({ theme }) => theme.gridUnit * 5}px;
&:hover {
text-decoration: none;
}
}
}
Expand All @@ -106,11 +111,14 @@ const StyledHeader = styled.div`
${({ theme }) => theme.gridUnit * 4}px;
}
}
li.active > a,
li.active > div,
div.active > div,
li > a:hover,
li > a:focus,
li > div:hover {
li > div:hover,
div > div:hover {
background: ${({ theme }) => theme.colors.secondary.light4};
border-bottom: none;
border-radius: ${({ theme }) => theme.borderRadius}px;
Expand Down Expand Up @@ -148,6 +156,7 @@ const StyledHeader = styled.div`
const styledDisabled = (theme: SupersetTheme) => css`
color: ${theme.colors.grayscale.base};
backgroundColor: ${theme.colors.grayscale.light2}};
.ant-menu-item:hover {
color: ${theme.colors.grayscale.base};
cursor: default;
Expand Down

0 comments on commit bee364b

Please sign in to comment.