File tree Expand file tree Collapse file tree
datasets/access-to-funding/blocks/block-2
location/views/access-to-funding Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export interface TableProps {
2828 dataTreeStartExpanded ?: boolean ;
2929 extraColumns ?: ColumnDefinition [ ] ;
3030 dataTreeStartExpandedFn ?: ( row : RowComponent , level : number ) => boolean ;
31+ disableHover ?: boolean ;
3132}
3233
3334export const cellBGColorFormatter = ( cell : CellComponent ) => {
Original file line number Diff line number Diff line change @@ -104,10 +104,14 @@ export const Table: React.FC<TableProps> = (props: TableProps) => {
104104 "> .tabulator-cell:first-of-type" : {
105105 // background: "#F1F3F5 !important",
106106 } ,
107- "&:hover" : {
108- background : "#F6F7F7" ,
109- borderColor : "#CFD4DA" ,
110- } ,
107+ "&:hover" : ! props . disableHover
108+ ? {
109+ background : "#F6F7F7 !important" ,
110+ "> div" : {
111+ background : "#F6F7F7 !important" ,
112+ } ,
113+ }
114+ : { } ,
111115 } ,
112116 } }
113117 />
Original file line number Diff line number Diff line change 11import React from "react" ;
22import get from "lodash/get" ;
33import uniq from "lodash/uniq" ;
4+ import isEqual from "lodash/isEqual" ;
45import Box from "@mui/material/Box" ;
56import { appColors } from "app/theme" ;
67import Tooltip from "@mui/material/Tooltip" ;
@@ -19,7 +20,6 @@ import {
1920 cellBGColorFormatter ,
2021 TABLE_VARIATION_10_COLUMNS as ELIGIBILITY_TABLE_COLUMNS ,
2122} from "app/components/table/data" ;
22- import isEqual from "lodash/isEqual" ;
2323
2424interface AccessToFundingBlock2Props {
2525 filterGroups : FilterGroupModel [ ] ;
@@ -483,6 +483,7 @@ export const AccessToFundingBlock2: React.FC<AccessToFundingBlock2Props> = (
483483 </ Box >
484484 < TableContainer
485485 dataTree
486+ disableHover
486487 search = { tableSearch }
487488 id = "eligibility-table"
488489 data = { dataEligibilityTable }
Original file line number Diff line number Diff line change @@ -660,6 +660,7 @@ export const AccessToFunding: React.FC = () => {
660660 </ Box >
661661 < Table
662662 dataTree
663+ disableHover
663664 dataTreeStartExpanded
664665 id = "eligibility-table"
665666 data = { dataEligibilityTable }
Original file line number Diff line number Diff line change @@ -96,12 +96,6 @@ input[type="text"] {
9696 background : # 000 ;
9797 border-radius : 24px ;
9898}
99- .tabulator-row : hover {
100- background : # f6f7f7 !important ;
101- }
102- .tabulator-row : hover > div {
103- background : # f6f7f7 !important ;
104- }
10599.tabulator-cell ,
106100.tabulator-col-title {
107101 font-size : 14px !important ;
You can’t perform that action at this time.
0 commit comments