From ad101dd8bb2634cf5b9fab09c755380fd9bc8d7c Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 22 Nov 2024 10:16:02 +0300 Subject: [PATCH] Fixed #6796 --- packages/primevue/src/datatable/style/DataTableStyle.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/primevue/src/datatable/style/DataTableStyle.js b/packages/primevue/src/datatable/style/DataTableStyle.js index 8134a29ca..34d1b3ca8 100644 --- a/packages/primevue/src/datatable/style/DataTableStyle.js +++ b/packages/primevue/src/datatable/style/DataTableStyle.js @@ -505,6 +505,11 @@ const theme = ({ dt }) => ` color: ${dt('datatable.row.selected.color')}; } +.p-datatable-striped.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover { + background: ${dt('datatable.row.hover.background')}; + color: ${dt('datatable.row.hover.color')}; +} + .p-datatable.p-datatable-sm .p-datatable-header { padding: 0.375rem 0.5rem; }