Skip to content

Commit

Permalink
feat(new-hope): dynemic width close button in toast
Browse files Browse the repository at this point in the history
  • Loading branch information
iljs committed Dec 20, 2024
1 parent 0ed9bc4 commit c0b511f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const base = css`
user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
${buttonTokens.buttonWidth}: 1rem;
${buttonTokens.buttonWidth}: var(${tokens.closeIconButtonSize});
`;

export const StyledRoot = styled.div<{ position: string; isVisible: boolean; offset?: number }>`
Expand Down
2 changes: 1 addition & 1 deletion packages/sdds-cs/src/components/Toast/Toast.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const config = {
${toastTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
${toastTokens.leftContentMargin}: -0.0625rem 0.5rem -0.0625rem 0rem;
${toastTokens.closeIconMargin}: -0.0625rem 0.125rem -0.0625rem 0.75rem;
${toastTokens.closeIconMargin}: -0.0625rem 0rem -0.0625rem 0.5rem;
`,
},
closeIconType: {
Expand Down

0 comments on commit c0b511f

Please sign in to comment.