From 0de6b447e5ee065e6bd768efd78bc292d99d01a3 Mon Sep 17 00:00:00 2001 From: Brad Adams Date: Mon, 9 Oct 2017 14:07:10 +0200 Subject: [PATCH] Table: Add `important` rule to `col-resize` cursor (#7381) * Table: Add `important` rule to `col-resize` cursor * Table: Add `important` rule to `col-resize` cursor * Update table-header.js --- packages/table/src/table-header.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/table/src/table-header.js b/packages/table/src/table-header.js index 4d524166c..b6674904e 100644 --- a/packages/table/src/table-header.js +++ b/packages/table/src/table-header.js @@ -369,9 +369,15 @@ export default { const bodyStyle = document.body.style; if (rect.width > 12 && rect.right - event.pageX < 8) { bodyStyle.cursor = 'col-resize'; + if (hasClass(target, 'is-sortable')) { + target.style.cursor = 'col-resize'; + } this.draggingColumn = column; } else if (!this.dragging) { bodyStyle.cursor = ''; + if (hasClass(target, 'is-sortable')) { + target.style.cursor = 'pointer'; + } this.draggingColumn = null; } }