-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style(dashboard): improve keys page design and look and feel #7236
Conversation
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
'bg-background flex h-12 w-full items-center justify-between border-b border-b-neutral-100 px-2.5 py-1.5', | ||
className | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the color to match Figma designs of the bottom border
<div | ||
ref={ref} | ||
className={cn('flex flex-col space-y-1.5 bg-neutral-50 p-4 text-sm font-medium', className)} | ||
{...props} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated card bg to reflect design system
export const Container = ({ children, className }: { children: React.ReactNode; className?: string }) => { | ||
return <div className={cn('mx-auto w-full max-w-[1152px] px-14 py-14', className)}>{children}</div>; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a reusable container at 1152px width
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to me feels like to generic component with very specific CSS 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal for this one is to be consistent across all pages that needs to use the container width. This is the first page to need it
export function HelpTooltipIndicator({ text, className, size = '5' }: HelpTooltipIndicatorProps) { | ||
return ( | ||
<Tooltip> | ||
<TooltipTrigger asChild> | ||
<span className={cn('text-foreground-400 hover:cursor inline-block', className)}> | ||
<RiInformation2Line className={`size-${size}`} /> | ||
</span> | ||
</TooltipTrigger> | ||
<TooltipContent> | ||
<p>{text}</p> | ||
</TooltipContent> | ||
</Tooltip> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be used to easily embed help tooltips
|
||
const handleClick = () => { | ||
telemetry(TelemetryEvent.EXTERNAL_LINK_CLICKED, { | ||
href, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
Co-authored-by: George Djabarov <39195835+djabarovgeorge@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer