Skip to content

Commit

Permalink
enhanements
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jul 19, 2024
1 parent 6bbdf5d commit 310e434
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/dataviews/src/components/dataviews-filters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function FilterVisibilityToggle( {
setOpenedFilter={ setOpenedFilter }
trigger={
<Button
className="dataviews-filters__visibility-toggle"
size="compact"
icon={ funnel }
label={ __( 'Add filter' ) }
Expand All @@ -116,6 +117,7 @@ export function FilterVisibilityToggle( {
return (
<>
<Button
className="dataviews-filters__visibility-toggle"
size="compact"
icon={ funnel }
label={ __( 'Toggle filter display' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,13 @@
}
}

.dataviews-filters__visibility-toggle {
margin-left: -$grid-unit-05;
}

.dataviews-filters-toggle__container {
position: relative;
flex-shrink: 0;
}

.dataviews-filters-toggle__count {
Expand Down
4 changes: 2 additions & 2 deletions packages/dataviews/src/components/dataviews/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export default function DataViews< Item >( {
className="dataviews__view-actions"
>
{ search && <DataViewsSearch label={ searchLabel } /> }
<DataViewsBulkActions />
<DataViewsViewConfig defaultLayouts={ defaultLayouts } />
<FilterVisibilityToggle
filters={ filters }
view={ view }
Expand All @@ -119,8 +121,6 @@ export default function DataViews< Item >( {
setIsShowingFilter={ setIsShowingFilter }
isShowingFilter={ isShowingFilter }
/>
<DataViewsBulkActions />
<DataViewsViewConfig defaultLayouts={ defaultLayouts } />
</HStack>
{ isShowingFilter && <DataViewsFilters /> }
<DataViewsLayout />
Expand Down

0 comments on commit 310e434

Please sign in to comment.