= ({
className={clsx(
'rvo-table-header',
column.sortable && 'rvo-table-header--sortable',
- column.sortable &&
- column.sortDirection &&
- column.sortDirection.length > 1 && ['rvo-layout-row', 'rvo-layout-gap--sm'],
column.type === 'numeric' && 'rvo-table-header--numeric',
)}
+ onClick={column.sortable ? () => handleSort(index) : undefined}
+ style={column.sortable ? { cursor: 'pointer' } : undefined}
>
- {column.label}
- {column.sortable && column.sortDirection && column.sortDirection.length > 0 && (
-
- )}
+
+ {column.label}
+ {column.sortable && column.sortDirection === 'ASC' && (
+
|
);
})}
---|
{cellValue} diff --git a/proprietary/design-tokens/src/components/rvo/table.tokens.json b/proprietary/design-tokens/src/components/rvo/table.tokens.json index 21ca644481..6796257b5c 100644 --- a/proprietary/design-tokens/src/components/rvo/table.tokens.json +++ b/proprietary/design-tokens/src/components/rvo/table.tokens.json @@ -6,7 +6,10 @@ }, "table": { "header": { - "background-color": { "value": "{rvo.color.grijs-050}" }, + "background-color": { "value": "{rvo.color.grijs-200}" }, + "border-bottom-width": { "value": "{rvo.size.3xs}" }, + "border-bottom-style": { "value": "solid" }, + "border-bottom-color": { "value": "{rvo.color.grijs-500}" }, "color": { "value": "{rvo.color.grijs-600}" }, "font-weight": { "value": "{rvo.font-weight.normal}" }, "padding-block-end": { "value": "{rvo.space.xs}" }, @@ -25,7 +28,7 @@ "cell": { "border-bottom-width": { "value": "0.05rem" }, "border-bottom-style": { "value": "solid" }, - "border-bottom-color": { "value": "{rvo.color.grijs-300}" }, + "border-bottom-color": { "value": "{rvo.color.grijs-500}" }, "padding-block-end": { "value": "{rvo.space.xs}" }, "padding-block-start": { "value": "{rvo.space.xs}" }, "padding-inline-end": { "value": "{rvo.space.md}" }, |