From 7b03534e4a6209667437a5cec372ca3348102c25 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 22 May 2024 09:00:47 +0200 Subject: [PATCH] Always show Actions table header. --- packages/dataviews/src/style.scss | 7 ++++++- packages/dataviews/src/view-table.tsx | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/dataviews/src/style.scss b/packages/dataviews/src/style.scss index 07ba9174b51200..c50902323db745 100644 --- a/packages/dataviews/src/style.scss +++ b/packages/dataviews/src/style.scss @@ -107,7 +107,8 @@ th:first-child { padding-left: $grid-unit-40; - .dataviews-view-table-header-button { + .dataviews-view-table-header-button, + .dataviews-view-table-header { margin-left: - #{$grid-unit-10}; } } @@ -223,6 +224,10 @@ } } + .dataviews-view-table-header { + padding-left: $grid-unit-05; + } + .dataviews-view-table__actions-column { width: 1%; } diff --git a/packages/dataviews/src/view-table.tsx b/packages/dataviews/src/view-table.tsx index 9ecfa9c9c0770d..566d098216d43f 100644 --- a/packages/dataviews/src/view-table.tsx +++ b/packages/dataviews/src/view-table.tsx @@ -15,7 +15,6 @@ import { privateApis as componentsPrivateApis, CheckboxControl, Spinner, - VisuallyHidden, } from '@wordpress/components'; import { forwardRef, @@ -552,9 +551,9 @@ function ViewTable< Item extends AnyItem >( { data-field-id="actions" className="dataviews-view-table__actions-column" > - + { __( 'Actions' ) } - + ) }