From ce53127e416f3ba00a7cf0fdc9d6a263c664cc87 Mon Sep 17 00:00:00 2001 From: Alex Wilmer Date: Tue, 24 May 2016 15:39:42 -0400 Subject: [PATCH] fix(tables): 1771 improve sort ux Closes #1771 --- .../components/tables/tables.controllers.ts | 4 +- .../tables/templates/sort-table.html | 45 ++++++++++++++----- app/styles/tables.less | 7 +++ 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/app/scripts/components/tables/tables.controllers.ts b/app/scripts/components/tables/tables.controllers.ts index 24310ebfc..ba7792957 100644 --- a/app/scripts/components/tables/tables.controllers.ts +++ b/app/scripts/components/tables/tables.controllers.ts @@ -128,7 +128,9 @@ module ngApp.components.tables.controllers { this.LocalStorageService.setItem(this.$scope.title + '-col', save); } - updateSorting(): void { + updateSorting(event): void { + if (event) event.stopPropagation(); + this.saveToLocalStorage(); if (this.$scope.update) { diff --git a/app/scripts/components/tables/templates/sort-table.html b/app/scripts/components/tables/templates/sort-table.html index d4f3ee809..2581db18d 100644 --- a/app/scripts/components/tables/templates/sort-table.html +++ b/app/scripts/components/tables/templates/sort-table.html @@ -15,21 +15,42 @@ data-uib-dropdown-menu role="menu">
  • -
    - - {{ item.name | translate }} - +
    + + + {{ item.name | translate }} + + + - + - +
  • diff --git a/app/styles/tables.less b/app/styles/tables.less index 7266f5318..020781d3b 100644 --- a/app/styles/tables.less +++ b/app/styles/tables.less @@ -80,3 +80,10 @@ th.truncated-cell { line-height: 28px;; } } + +.Columns-dropdown-headings > li { + outline: none; +} +.Columns-dropdown-headings > li:hover .sorting-radio-buttons-container { + border-left: 2px solid rgb(28, 126, 198); +}