From 440a454701ff7120c06026ceb6e0f40f8cfe8e72 Mon Sep 17 00:00:00 2001 From: "Lisa Flinn (She/Her)" Date: Thu, 23 May 2024 11:57:50 +0100 Subject: [PATCH 1/3] initial commit --- src/app/components/table/table.css | 7 +++++++ src/app/components/table/table.ts | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/components/table/table.css b/src/app/components/table/table.css index 6d55f24793e..5e3440c06f3 100755 --- a/src/app/components/table/table.css +++ b/src/app/components/table/table.css @@ -7,6 +7,8 @@ overflow: auto; } + + .p-datatable-table { border-spacing: 0px; width: 100%; @@ -153,8 +155,13 @@ cursor: move; } + [pReorderableColumn] { cursor: move; + } + + .p-reorder-column-disabled { + cursor: default; } /* Loader */ diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index cb7b0610d56..b1b1ef8d187 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4025,7 +4025,8 @@ export class ResizableColumn implements AfterViewInit, OnDestroy { @Directive({ selector: '[pReorderableColumn]', host: { - class: 'p-element' + class: 'p-element', + '[class.p-reorder-column-disabled]': '!isEnabled()' } }) export class ReorderableColumn implements AfterViewInit, OnDestroy { From b121196c7c3b5574e8adb9c03a8bef2ec87963a7 Mon Sep 17 00:00:00 2001 From: "Lisa Flinn (She/Her)" Date: Thu, 23 May 2024 11:59:56 +0100 Subject: [PATCH 2/3] remove whitespace --- src/app/components/table/table.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/components/table/table.css b/src/app/components/table/table.css index 5e3440c06f3..2b4dbfddc33 100755 --- a/src/app/components/table/table.css +++ b/src/app/components/table/table.css @@ -7,8 +7,6 @@ overflow: auto; } - - .p-datatable-table { border-spacing: 0px; width: 100%; @@ -155,7 +153,6 @@ cursor: move; } - [pReorderableColumn] { cursor: move; } From 9b8a129d75b123555e59849aca0bc476ed015848 Mon Sep 17 00:00:00 2001 From: "Lisa Flinn (She/Her)" Date: Thu, 30 May 2024 09:59:15 +0100 Subject: [PATCH 3/3] change class to style --- src/app/components/table/table.css | 4 ---- src/app/components/table/table.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/table/table.css b/src/app/components/table/table.css index 2b4dbfddc33..a3820e16ce3 100755 --- a/src/app/components/table/table.css +++ b/src/app/components/table/table.css @@ -156,10 +156,6 @@ [pReorderableColumn] { cursor: move; } - - .p-reorder-column-disabled { - cursor: default; - } /* Loader */ .p-datatable .p-datatable-loading-overlay { diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index b1b1ef8d187..b85b2165bc9 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4026,7 +4026,7 @@ export class ResizableColumn implements AfterViewInit, OnDestroy { selector: '[pReorderableColumn]', host: { class: 'p-element', - '[class.p-reorder-column-disabled]': '!isEnabled()' + '[style.cursor]': 'isEnabled() ? "move" : "default"' } }) export class ReorderableColumn implements AfterViewInit, OnDestroy {