From 5b992b9f73736cc319fddb2835cbcd96417ef3e4 Mon Sep 17 00:00:00 2001 From: Jared Scott Date: Tue, 10 Sep 2024 14:48:29 +0800 Subject: [PATCH] fix: #6857 Adjust top up by 1px when gridlines are active --- components/lib/datatable/DataTableBase.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/lib/datatable/DataTableBase.js b/components/lib/datatable/DataTableBase.js index 76277da93f..96dcf12ac4 100644 --- a/components/lib/datatable/DataTableBase.js +++ b/components/lib/datatable/DataTableBase.js @@ -59,6 +59,10 @@ const styles = ` z-index: 1; } + .p-datatable.p-datatable-gridlines .p-datatable-scrollable-table > .p-datatable-thead { + top: -1px; + } + .p-datatable-scrollable-table > .p-datatable-frozen-tbody { position: sticky; z-index: 1;