chore: fix market sticky header color
This commit is contained in:
parent
3a3b5cbc9a
commit
ad00fcfd39
@ -7,7 +7,7 @@ export const SelectMarketTableHeader = ({
|
||||
headers = columnHeaders,
|
||||
}) => {
|
||||
return (
|
||||
<tr className="sticky top-0 z-10 border-b border-neutral-300 dark:border-neutral-700 bg-neutral-200 dark:bg-neutral-800">
|
||||
<tr className="sticky top-0 z-10 border-b border-neutral-300 dark:border-neutral-700 bg-inherit">
|
||||
{headers.map(({ value, className, onlyOnDetailed }, i) => {
|
||||
const thClass = classNames(
|
||||
'font-normal text-neutral-500 dark:text-neutral-400',
|
||||
|
@ -38,11 +38,11 @@ export const SelectMarketLandingTable = ({
|
||||
const marketList = data && mapDataToMarketList(data);
|
||||
return (
|
||||
<div
|
||||
className="max-h-[40rem] overflow-x-auto"
|
||||
className="max-h-[80vh] overflow-x-auto"
|
||||
data-testid="select-market-list"
|
||||
>
|
||||
<table className="text-sm relative h-full min-w-full whitespace-nowrap">
|
||||
<thead className="sticky top-0 z-10">
|
||||
<thead className="sticky top-0 z-10 bg-white dark:bg-black">
|
||||
<SelectMarketTableHeader />
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -75,7 +75,7 @@ export const SelectAllMarketsTableBody = ({
|
||||
|
||||
return (
|
||||
<>
|
||||
<thead>
|
||||
<thead className="bg-neutral-200 dark:bg-neutral-800">
|
||||
<SelectMarketTableHeader detailed={true} headers={headers} />
|
||||
</thead>
|
||||
{/* Border styles required to create space between tbody elements margin/padding dont work */}
|
||||
|
Loading…
Reference in New Issue
Block a user