primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.3k stars 965 forks source link

DataTable - selection: row colour doesn't look nice for frozen columns #3230

Open sbrauch opened 1 year ago

sbrauch commented 1 year ago

Describe the bug

I think there might be a bug with the "selection" feature of the data table. It automatically changes the colour of the chosen columns to a transparent background which doesn't look nice with frozen columns. Additionally, it only applies the colour until the point the frozen columns start from the original view. Is this an issue from my side or an actual bug ?

Capture d’écran 2022-09-01 à 16 20 19 Capture d’écran 2022-09-01 à 16 20 23

Reproducer

https://codesandbox.io/s/summer-cloud-zi7eep?file=/src/demo/DataTableScrollDemo.js

PrimeReact version

8.2.0

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

Brave

Steps to reproduce the behavior

  1. Create a data table with cell edit and enough columns to having to scroll horizontally
  2. Add one or more frozen columns at the right side of the table
  3. Add the selection feature from the data table
  4. Select a row
  5. See the colour of the row being changed to transparent blue up to the frozen columns limit

Expected behavior

Frozen columns colour:

Frozen colour limit:

melloware commented 1 year ago

Thanks for the report!