Skip to content

Commit

Permalink
Always show Actions table header. (#61847)
Browse files Browse the repository at this point in the history
Co-authored-by: afercia <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jameskoster <[email protected]>
  • Loading branch information
4 people authored May 30, 2024
1 parent 4952a52 commit a96a728
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 @@ -119,7 +119,8 @@
th:first-child {
padding-left: $grid-unit-60;

.dataviews-view-table-header-button {
.dataviews-view-table-header-button,
.dataviews-view-table-header {
margin-left: - #{$grid-unit-10};
}
}
Expand Down Expand Up @@ -235,6 +236,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 @@ -549,9 +548,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 a96a728

Please sign in to comment.