Skip to content

Commit

Permalink
fix number positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jul 22, 2024
1 parent 205ff5c commit 0fa197e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/dataviews/src/components/dataviews-filters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function FilterVisibilityToggle( {
);
}
return (
<>
<div className="dataviews-filters__container-visibility-toggle">
<Button
className="dataviews-filters__visibility-toggle"
size="compact"
Expand All @@ -135,7 +135,7 @@ export function FilterVisibilityToggle( {
{ view.filters?.length }
</span>
) }
</>
</div>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@
margin-left: -$grid-unit-05;
}

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

.dataviews-filters-toggle__count {
position: absolute;
top: math.div(-$grid-unit-15, 2);
right: -$grid-unit-15;
right: -( $grid-unit-05 + math.div($grid-unit-05, 2) );
background: var(--wp-admin-theme-color, #3858e9);
height: $grid-unit-15 + math.div($grid-unit-05, 2);
width: $grid-unit-15 + math.div($grid-unit-05, 2);
Expand Down

0 comments on commit 0fa197e

Please sign in to comment.