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

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

Loading…
Cancel
Save