Data table persistent sort indicator and other considerations #11119
Replies: 5 comments 2 replies
-
@laurenmrice and @aagonzales at one point during datatable discussions involving @mjabbink I believe there was a general feeling that datatables have a sorted column in almost every case, and that Carbon could make its default datatable show the currently sorted column by default. There could still be a way of having a table implemented that didn't have a sorted column by default, and those would be the only ones that would not have a persistent visual indicator of which column was currently sorted. This came up again as a result of a post on #accessibility-at-ibm. Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
@jnm2377 I've updated the link. Should work for you now https://ibm.box.com/s/b68e43xg8hwxkzvoa2e68yaf7qa8g4me The basic thing is that there is no visual indication of whether a table is sortable or not until you start interacting with it. Which means the designer must annotate that on every single wireframe, or just assume the dev will pick correctly. |
Beta Was this translation helpful? Give feedback.
-
Note that Visible Controls did not make it into WCAG 2.2 as a new requirement, so my comments about those considerations, although still valid for improved user experience, would not represent an actual failure. |
Beta Was this translation helpful? Give feedback.
-
Some of the discussion from a CAG call on this topic:
|
Beta Was this translation helpful? Give feedback.
-
Just adding a +1 to this discussion as this issue, which I'm currently thinking about, led me here:
The answer is, a touch user won't have a way to know the columns are sortable (unless they actually attempt to sort by tapping on the column header, which they are unlikely to do as their is no affordance). This in my view is the priority issue to solve here. Also, there won't always be a default sort based on one of the columns e.g. a search interface where the results are based on something like a complex "best match" algorithm. |
Beta Was this translation helpful? Give feedback.
-
As discussed, the sorting controls on data tables are non-persistent. A sortable table is indistinguishable from a non-sortable table until a user hovers (or place focus there).
Yet most tables have a default sort view, and this could be exposed to show which row is sorted and in ascending or descending order. The sort controls for other column headers can still be exposed on focus or hover (it arguably helps); with the persistent sort indicator, these cell-specific sort options do not need to be persistent.
Other data table considerations discussed in the following Word document. https://ibm.box.com/s/b68e43xg8hwxkzvoa2e68yaf7qa8g4me
Beta Was this translation helpful? Give feedback.
All reactions