react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

conditionalCellStyles '&:hover' does not work in react typescript

Open mohammedmudassir687687 opened this issue 2 years ago • 1 comments

Version

using [email protected]

Bug

styles applied to '&:hover' does not work within conditionalCellStyles for columns

Code to reproduce the behavior in react typescript

` interface IRow { title: string, } const columns = [ { name: 'Title', selector: (row: IRow) => row.title, conditionalCellStyles : [ { when: (row: IRow) => row.title.length < 5, style: { backgroundColor: 'green', color: 'white', '&:hover': { backgroundColor: 'blue' } }, }, ] }, ]

const data = [ { title: 'Amelie', year: '2001', rating: 8.3 }, { title: 'Hamilton', year: '2020', rating: 7.7 } ]

`

mohammedmudassir687687 avatar Nov 15 '23 20:11 mohammedmudassir687687

+1 also seeing this

jewbetcha avatar Jan 04 '24 20:01 jewbetcha