Explorar o código

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
Brad Adams %!s(int64=7) %!d(string=hai) anos
pai
achega
0de6b447e5
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      packages/table/src/table-header.js

+ 6 - 0
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;
         }
       }