diff --git a/packages/core/src/components/Status/Status.stories.tsx b/packages/core/src/components/Status/Status.stories.tsx
index 0e3717d082..140b2e6b3f 100644
--- a/packages/core/src/components/Status/Status.stories.tsx
+++ b/packages/core/src/components/Status/Status.stories.tsx
@@ -68,7 +68,7 @@ const containerStyle = { width: 600 };
export const Default = () => (
-
+
({
+const useStyles = makeStyles(theme => ({
header: {
padding: theme.spacing(2, 2, 2, 2.5),
},
+ noPadding: {
+ padding: 0,
+ '&:last-child': {
+ paddingBottom: 0,
+ },
+ },
}));
-const BoldHeader = withStyles((theme) => ({
+const BoldHeader = withStyles(theme => ({
title: { fontWeight: 700 },
subheader: { paddingTop: theme.spacing(1) },
}))(CardHeader);
-const CardActionsTopRight = withStyles((theme) => ({
+const CardActionsTopRight = withStyles(theme => ({
root: {
display: 'inline-block',
padding: theme.spacing(8, 8, 0, 0),
@@ -127,6 +134,7 @@ type Props = {
cardClassName?: string;
actionsTopRight?: ReactNode;
className?: string;
+ noPadding?: boolean;
};
const InfoCard: FC = ({
@@ -144,6 +152,7 @@ const InfoCard: FC = ({
cardClassName,
actionsTopRight,
className,
+ noPadding,
}) => {
const classes = useStyles();
@@ -156,7 +165,7 @@ const InfoCard: FC = ({
if (variant) {
const variants = variant.split(/[\s]+/g);
- variants.forEach((name) => {
+ variants.forEach(name => {
calculatedStyle = {
...calculatedStyle,
...VARIANT_STYLES.card[name as keyof typeof VARIANT_STYLES['card']],
@@ -189,7 +198,12 @@ const InfoCard: FC = ({
{actionsTopRight}
)}
{divider && }
-
+
{children}
{actions && (