Skip to content

Commit

Permalink
fade labels
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Jan 1, 2025
1 parent 868786d commit bcc466e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Tooltip } from '@posthog/lemon-ui'
import clsx from 'clsx'
import { ReactNode } from 'react'

interface OverviewItemBase {
Expand Down Expand Up @@ -35,15 +36,17 @@ export function OverviewGridItem({
description,
label,
icon,
fadeLabel,
}: {
children?: ReactNode
description: ReactNode
label: ReactNode
icon?: ReactNode
fadeLabel?: boolean
}): JSX.Element {
return (
<div className="flex flex-1 w-full justify-between items-center ">
<div className="text-sm text-muted">
<div className={clsx('text-sm', fadeLabel && 'font-light')}>
{icon} {label}
</div>
<Tooltip title={description}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function PlayerSidebarOverviewGrid(): JSX.Element {
description={item.tooltipTitle}
label={item.label}
icon={item.icon}
fadeLabel
>
<div className="flex flex-row items-center space-x-2 justify-start">
{item.type === 'property' && (
Expand Down

0 comments on commit bcc466e

Please sign in to comment.