table hover styles

pull/26459/head^2
Corwin Smith 2 years ago
parent 4f62749ef9
commit 4ebe14a478
  1. 24
      src/components/UI/DataTable.tsx
  2. 4
      src/pages/downloads.tsx

@ -21,8 +21,7 @@ export const DataTable: FC<Props> = ({
}) => {
return (
<TableContainer
// TODO: Work on firefox implementation of scrollbar styles
// Note: This wont work on safari, we are ok with this.
// Note: This wont work on firefox, we are ok with this.
css={{
"&::-webkit-scrollbar": {
borderTop: '2px solid #11866f',
@ -32,13 +31,11 @@ export const DataTable: FC<Props> = ({
background: "#11866f",
},
}}
p={4}
pt={4}
pb={4}
>
<Table
variant='unstyled'
>
<Thead
>
<Table variant='unstyled'>
<Thead>
<Tr>
{
columnHeaders.map((columnHeader, idx) => {
@ -46,8 +43,8 @@ export const DataTable: FC<Props> = ({
<Th
key={idx}
textTransform='none'
p={0}
minW={'130.5px'}
px={4}
>
<Text
fontFamily='"JetBrains Mono", monospace'
@ -69,10 +66,9 @@ export const DataTable: FC<Props> = ({
return (
<Tr
key={idx}
// TODO: Full width for hover
// TODO: Add fade in animation on hover
// TODO: Get new background color from nuno for hover
_hover={{background: 'green.50'}}
transition={'all 0.5s'}
_hover={{background: 'green.50', transition: 'all 0.5s'}}
>
{
columnHeaders.map((columnHeader, idx) => {
@ -80,8 +76,8 @@ export const DataTable: FC<Props> = ({
return (
<Td
key={idx}
px={0}
pr={8}
px={4}
fontSize='13px'
>
{item[columnHeader.toLowerCase()]}
</Td>

@ -111,7 +111,6 @@ const DownloadsPage: NextPage = ({}) => {
}}>
<Text
fontFamily='"JetBrains Mono", monospace'
// TODO: move to theme colors
fontWeight={700}
textTransform='uppercase'
textAlign='center'
@ -146,7 +145,6 @@ const DownloadsPage: NextPage = ({}) => {
}}>
<Text
fontFamily='"JetBrains Mono", monospace'
// TODO: move to theme colors
fontWeight={700}
textTransform='uppercase'
textAlign='center'
@ -209,7 +207,7 @@ const DownloadsPage: NextPage = ({}) => {
Similarly you can import all the developer public keys by grabbing them directly from the keyserver network:
</Text>
{/* TODO: Thees are developer keys, do we need to change? */}
{/* TODO: These are developer keys, do we need to change? */}
<Code p={4}>
gpg --recv-keys E058A81C 05A5DDF0 1CCB7DD2
</Code>

Loading…
Cancel
Save