mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: change table header cursor for sortable columns to pointer (#2788)
In the UI, when a user navigates to a screen that displays a table of data and hovers the mouse over a sortable column header, the cursor does not change to a hand pointer, indicating to the user that it can be clicked on, in order to sort the table's data rows according to that column. When the mouse hovers over the non-sortable 'Quickview' column header, it incorrectly displays a hand pointer cursor instead of a default cursor. When the mouse hovers over a column header, it also does not display the column header's value as a tooltip. Expected Behaviour: The cursor type for a sortable column header must display a hand pointer. The cursor type for the non-sortable 'Quickview' column header must display a default pointer. When the mouse hovers over a column header it must display the column header's value as a tooltip. Actual Behaviour: The cursor type for a sortable column header incorrectly displays a default pointer. The cursor type for the non-sortable 'Quickview' column header incorrectly displays a hand pointer. When the mouse hovers over a column header it does not display the column header's value as a tooltip. To Reproduce: In the UI, navigate to a screen that displays a table of data and hover the mouse over a sortable column header, the cursor does not change to a hand pointer. Hover the mouse over the non-sortable 'Quickview' column header and notice that it incorrectly displays a hand pointer cursor instead of a default cursor. Hover the mouse over a column header and notice that it does not display the column header's value as a tooltip.
This commit is contained in:
parent
f20d3a4183
commit
a3d999c203
@ -125,6 +125,7 @@ table thead th {
|
||||
text-shadow: 0px 1px 1px #FFFFFF;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table thead th.sorted {
|
||||
@ -243,10 +244,7 @@ table thead th.quick-view {
|
||||
height: 14px !important;
|
||||
text-indent: 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table tbody td.quick-view {
|
||||
cursor: pointer;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
table tbody td.quick-view .icon {
|
||||
|
||||
@ -780,7 +780,7 @@
|
||||
|
||||
var addColumnToTr = function($tr, key, colspan, label, needsCollapsibleColumn) {
|
||||
var trText = _l(label);
|
||||
var $th = $('<th>').addClass(key).attr('colspan', colspan).appendTo($tr);
|
||||
var $th = $('<th>').addClass(key).attr('colspan', colspan).attr('title', trText).appendTo($tr);
|
||||
if ($th.index()) $th.addClass('reduced-hide');
|
||||
$th.css({'border-right': '1px solid #C6C3C3', 'border-left': '1px solid #C6C3C3'});
|
||||
if (needsCollapsibleColumn) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user