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'
import { CSSProperties, ReactNode } from 'react'
import { ArrowDown, ArrowUp, Heart } from 'react-feather'
import { Link, useParams } from 'react-router-dom'
import { Text } from 'rebass'
import styled, { css, useTheme } from 'styled-components/macro'
import { ClickableStyle } from 'theme'
import { formatDollar } from 'utils/formatNumbers'
......@@ -183,7 +182,6 @@ const DataCell = styled(Cell)<{ sortable: boolean }>`
justify-content: flex-end;
min-width: 80px;
user-select: ${({ sortable }) => (sortable ? 'none' : 'unset')};
transition: ${({
theme: {
transition: { duration, timing },
......@@ -239,9 +237,10 @@ const HeaderCellWrapper = styled.span<{ onClick?: () => void }>`
height: 100%;
justify-content: flex-end;
width: 100%;
`
const HeaderCellText = styled(Text)`
&:hover {
${ClickableStyle}
}
`
const SparkLineCell = styled(Cell)`
padding: 0px 24px;
......@@ -369,7 +368,7 @@ function HeaderCell({
)}
</>
)}
<HeaderCellText>{category}</HeaderCellText>
{category}
{description && <InfoTip text={description}></InfoTip>}
</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