-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable: Frozen columns have transparent background on the Arya theme #3700
Comments
Actually I think this is the more accurate selector? You only want this when you frozen is highlighted. .p-datatable .p-datatable-tbody > tr.p-highlight > td.p-frozen-column {
background-color: var(--table-row-select-color);
} |
This happens because I'm applying the workaround for #3091 (Datatable: scrollable property loses column alignment) Primereact and primevue tables layout need a refactor. Don't know about primeng but I think that @cagataycivici was doing refactors there too. |
Hi, I think this issue has already been fixed in 9.2.0. Please try it. Best Regards, |
Confirmed its fixed in 9.2.0 |
Describe the bug
The DataTable component, has an incorrect style on the Arya theme, when using it with frozen columns and selectable rows.
When freezing a column, and scrolling the datatable, so that some column is under the frozen one, the background of the frozen column will become partially transparent on selection or mouse hover, showing the data of the column under it.
It also seems, that the outline is also broken, if it's neccesary i can create a new issue, but this seems to be related, so i'm currently putting it only here.
Reproducer
https://codesandbox.io/s/silly-minsky-0oe4go?file=/src/demo/DataTableScrollDemo.js
PrimeReact version
8.7.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 107
Steps to reproduce the behavior
Expected behavior
The frozen column should not be transparent, when selected or hovered.
I fixed it by setting the the background color myself, with the following selector:
The text was updated successfully, but these errors were encountered: