Skip to content

Commit

Permalink
fix: adjust tile content label style
Browse files Browse the repository at this point in the history
  • Loading branch information
DavieReid committed Jul 20, 2023
1 parent 7f06156 commit 22a1cb9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions packages/components/src/Label/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ export const Label: React.FC<LabelProps> = ({
tooltipClass,
TooltipProps = {},
...rest
}) => {
return (
<Tooltip
disabled={!tooltip}
{...TooltipProps}
content={
<div className={styles.tooltip}>
{TooltipProps.title && <span className={styles.tooltipTitle}>{TooltipProps.title}</span>}
<span className={styles.tooltipContent}>{tooltip}</span>
</div>
}
status="info"
>
<span {...rest}>{children}</span>
</Tooltip>
);
};
}) => (
<Tooltip
disabled={!tooltip}
{...TooltipProps}
content={
<div className={styles.tooltip}>
{TooltipProps.title && <span className={styles.tooltipTitle}>{TooltipProps.title}</span>}
<span className={styles.tooltipContent}>{tooltip}</span>
</div>
}
status="info"
>
<span className={className} {...rest}>
{children}
</span>
</Tooltip>
);
2 changes: 1 addition & 1 deletion packages/components/src/TileContentLabel/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
}),
numRemaining: caption({ variant: 'caption4' }),
root: style([
caption({ variant: 'caption6' }),
caption({ variant: 'caption5' }),
responsiveSprinkles({
marginTop: ['x2', 'x2', 'x2', 'x2'],
marginRight: ['x1', 'x1', 'x1', 'x1']
Expand Down

1 comment on commit 22a1cb9

@vercel
Copy link

@vercel vercel bot commented on 22a1cb9 Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mosaic – ./

mosaic-mosaic-dev-team.vercel.app
mosaic-git-main-mosaic-dev-team.vercel.app

Please sign in to comment.