Skip to content

Commit

Permalink
fix: center align filters sidebar icon (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Sep 18, 2024
1 parent fbea6b9 commit 16ce0c1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import NotificationIcon from '@atlaskit/icon/glyph/notification';
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
import SettingsIcon from '@atlaskit/icon/glyph/settings';
import { AtlasIcon } from '@atlaskit/logo';
import { Box, Stack, Text } from '@atlaskit/primitives';
import { Box, Inline, Stack, Text } from '@atlaskit/primitives';
import Tooltip from '@atlaskit/tooltip';

import Toggle from '@atlaskit/toggle';
Expand Down Expand Up @@ -161,26 +161,26 @@ export const Sidebar: FC = () => {

<Tooltip content="Filters" position="right">
<Button
iconBefore={(iconProps) => (
<FilterIcon
{...iconProps}
size="small"
primaryColor="white"
/>
)}
appearance="subtle"
spacing="compact"
onClick={() => toggleFilters()}
>
{filterCount > 0 && (
<Text
color="color.text.inverse"
<Inline alignBlock="center" space="space.100">
<FilterIcon
label="Filters"
size="small"
weight="semibold"
>
{filterCount}
</Text>
)}
primaryColor="white"
/>
{filterCount > 0 && (
<Text
color="color.text.inverse"
size="small"
weight="semibold"
>
{filterCount}
</Text>
)}
</Inline>
</Button>
</Tooltip>
</>
Expand Down

0 comments on commit 16ce0c1

Please sign in to comment.