In a table made using AngularJS ng-table, very similar to: http://ng-table.com/#/demo/2-1 i have to change the colour of the sort symbol for default/ascendent/descendent and normal/hover/active state. I assume it's done by CSS(SASS) but what is the selector and how you can use it in this case?
How to edit the color of the sort glyph when using ng-table?
1.3k views Asked by vtor At
2
There are 2 answers
0
On
Overwrite some classes:
.ng-table th.sortable .sort-indicator:before,
.ng-table th.sortable.sort-desc .sort-indicator:after,
.ng-table th.sortable.sort-desc .sort-indicator:hover:after{
border-top: 4px solid #4D1F4B;
}
.ng-table th.sortable .sort-indicator:after,
.ng-table th.sortable.sort-asc .sort-indicator:after,
.ng-table th.sortable.sort-asc .sort-indicator:hover:after{
border-bottom: 4px solid #4D1F4B;
}
It is in CSS following are the two classes:
CSS for up arrow and ascending Sorting:
and CSS for down arrow:
Descending Sorting:
For hover you may use: