Skip to content

Commit

Permalink
Always show Actions table header.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed May 22, 2024
1 parent f937edd commit 7b03534
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
}
Expand Down Expand Up @@ -223,6 +224,10 @@
}
}

.dataviews-view-table-header {
padding-left: $grid-unit-05;
}

.dataviews-view-table__actions-column {
width: 1%;
}
Expand Down
5 changes: 2 additions & 3 deletions packages/dataviews/src/view-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
privateApis as componentsPrivateApis,
CheckboxControl,
Spinner,
VisuallyHidden,
} from '@wordpress/components';
import {
forwardRef,
Expand Down Expand Up @@ -552,9 +551,9 @@ function ViewTable< Item extends AnyItem >( {
data-field-id="actions"
className="dataviews-view-table__actions-column"
>
<VisuallyHidden>
<span className="dataviews-view-table-header">
{ __( 'Actions' ) }
</VisuallyHidden>
</span>
</th>
) }
</tr>
Expand Down

0 comments on commit 7b03534

Please sign in to comment.