File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 143
143
scope =" col"
144
144
class ={` govuk-table__header ${column .dataType === " number" ? " govuk-table__header--numeric" : " " } ` }
145
145
title ={metaData [column .key ].explainer }
146
+ aria-sort ={sortState .column !== column .key
147
+ ? " not-sorted"
148
+ : sortState .column === column .key &&
149
+ sortState .order === " descending"
150
+ ? " descending"
151
+ : " ascending" }
146
152
>
147
153
<div class =" header" >
148
154
<Button
226
232
border-radius : 10% ;
227
233
padding : 6px ;
228
234
}
235
+
236
+ :global([aria-sort = " ascending" ].govuk-table__header .top-triangle ) {
237
+ fill : #222 ;
238
+ }
239
+ :global([aria-sort = " ascending" ].govuk-table__header .bottom-triangle ) {
240
+ fill : #bcbcbd ;
241
+ }
242
+ :global([aria-sort = " descending" ].govuk-table__header .top-triangle ) {
243
+ fill : #bcbcbd ;
244
+ }
245
+ :global([aria-sort = " descending" ].govuk-table__header .bottom-triangle ) {
246
+ fill : #222 ;
247
+ }
229
248
</style >
Original file line number Diff line number Diff line change 64
64
aria-hidden =" true"
65
65
role =" img"
66
66
viewBox =" 0 0 22 22"
67
- fill =" none "
67
+ fill =" currentColor "
68
68
xmlns =" http://www.w3.org/2000/svg"
69
69
>
70
70
<path
71
+ class =" top-triangle"
71
72
d =" M8.1875 9.5L10.9609 3.95703L13.7344 9.5H8.1875Z"
72
73
fill =" currentColor"
73
74
></path >
74
75
<path
76
+ class =" bottom-triangle"
75
77
d =" M13.7344 12.0781L10.9609 17.6211L8.1875 12.0781H13.7344Z"
76
78
fill =" currentColor"
77
79
></path >
You can’t perform that action at this time.
0 commit comments