Skip to content

Commit

Permalink
Updated Snackbar as shown in Figma Fixes twentyhq#5666 (twentyhq#5700)
Browse files Browse the repository at this point in the history
<img width="282" alt="Screenshot 2024-06-01 at 1 07 16 AM"
src="https://github.com/twentyhq/twenty/assets/10000167/0b1cd2f5-9036-4a31-8dfa-b90972ebe1aa">


Updated the font weight and added Cancel label on the left of the icon
as shown in figma design.
Also, didn't increased the gap because it's already like the figma
design!
Let me know if you want more gap between title and description.

Closes twentyhq#5666

---------

Co-authored-by: Thomas Trompette <[email protected]>
  • Loading branch information
sagarhedaoo and thomtrp authored Jun 3, 2024
1 parent a73d8a7 commit 65fcdc6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const SnackBar = ({
{title}
<StyledActions>
{!!onCancel && <LightButton title="Cancel" onClick={onCancel} />}

{!!onClose && (
<LightIconButton title="Close" Icon={IconX} onClick={onClose} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const LightButton = ({
className={className}
active={active}
>
{!!Icon && <Icon size={theme.icon.size.sm} />}
{!!Icon && <Icon size={theme.icon.size.md} />}
{title}
</StyledButton>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const StyledButton = styled.button<
transition: background 0.1s ease;
white-space: nowrap;
width: ${({ size }) => (size === 'small' ? '24px' : '32px')};
min-width: ${({ size }) => (size === 'small' ? '24px' : '32px')};
Expand Down

0 comments on commit 65fcdc6

Please sign in to comment.