Skip to content

Commit

Permalink
fix: add spacing to card titleExtra, align center (#172)
Browse files Browse the repository at this point in the history
* fix: add spacing to card titleExtra, align center

* fix: add to stories

* v0.17.5
  • Loading branch information
mikeldking authored Oct 12, 2023
1 parent 14d18a2 commit 2601d78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.17.4",
"version": "0.17.5",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const headerTitleWrapCSS = css`
const titleWithTitleExtraCSS = css`
display: flex;
flex-direction: row;
align-items: center;
gap: var(--ac-global-dimension-static-size-100);
`;

const bodyCSS = css`
Expand Down
4 changes: 3 additions & 1 deletion stories/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Card, CardProps, TabbedCard } from '../src/card';
import { Tabs } from '../src/tabs';
import { Button } from '../src/button';
import InfoTip from './components/InfoTip';
import { Flex, Heading, Provider, View } from '../src';
import { Counter, Flex, Heading, Provider, View } from '../src';

const { TabPane } = Tabs;

Expand Down Expand Up @@ -138,6 +138,7 @@ const GalleryCards = (props: { variant: CardProps['variant'] }) => {
</Card>
<Card
title="Collapsible Title"
titleExtra={<Counter variant="light">5</Counter>}
{...props}
style={cardStyle}
extra={
Expand All @@ -153,6 +154,7 @@ const GalleryCards = (props: { variant: CardProps['variant'] }) => {
<Card
title="Collapsible Title"
subTitle="Subtext area"
titleExtra={<Counter variant="light">5</Counter>}
style={cardStyle}
extra={
<Button variant="default" size={buttonSize}>
Expand Down

0 comments on commit 2601d78

Please sign in to comment.