Commit 5462526f authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

fix: hover state shows for full header cell (#4940)

parent 4388bbe0
...@@ -13,7 +13,6 @@ import { ForwardedRef, forwardRef } from 'react' ...@@ -13,7 +13,6 @@ import { ForwardedRef, forwardRef } from 'react'
import { CSSProperties, ReactNode } from 'react' import { CSSProperties, ReactNode } from 'react'
import { ArrowDown, ArrowUp, Heart } from 'react-feather' import { ArrowDown, ArrowUp, Heart } from 'react-feather'
import { Link, useParams } from 'react-router-dom' import { Link, useParams } from 'react-router-dom'
import { Text } from 'rebass'
import styled, { css, useTheme } from 'styled-components/macro' import styled, { css, useTheme } from 'styled-components/macro'
import { ClickableStyle } from 'theme' import { ClickableStyle } from 'theme'
import { formatDollar } from 'utils/formatNumbers' import { formatDollar } from 'utils/formatNumbers'
...@@ -183,7 +182,6 @@ const DataCell = styled(Cell)<{ sortable: boolean }>` ...@@ -183,7 +182,6 @@ const DataCell = styled(Cell)<{ sortable: boolean }>`
justify-content: flex-end; justify-content: flex-end;
min-width: 80px; min-width: 80px;
user-select: ${({ sortable }) => (sortable ? 'none' : 'unset')}; user-select: ${({ sortable }) => (sortable ? 'none' : 'unset')};
transition: ${({ transition: ${({
theme: { theme: {
transition: { duration, timing }, transition: { duration, timing },
...@@ -239,9 +237,10 @@ const HeaderCellWrapper = styled.span<{ onClick?: () => void }>` ...@@ -239,9 +237,10 @@ const HeaderCellWrapper = styled.span<{ onClick?: () => void }>`
height: 100%; height: 100%;
justify-content: flex-end; justify-content: flex-end;
width: 100%; width: 100%;
`
const HeaderCellText = styled(Text)` &:hover {
${ClickableStyle} ${ClickableStyle}
}
` `
const SparkLineCell = styled(Cell)` const SparkLineCell = styled(Cell)`
padding: 0px 24px; padding: 0px 24px;
...@@ -369,7 +368,7 @@ function HeaderCell({ ...@@ -369,7 +368,7 @@ function HeaderCell({
)} )}
</> </>
)} )}
<HeaderCellText>{category}</HeaderCellText> {category}
{description && <InfoTip text={description}></InfoTip>} {description && <InfoTip text={description}></InfoTip>}
</HeaderCellWrapper> </HeaderCellWrapper>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment