Skip to content

Commit 68ee0e0

Browse files
fix: adjust padding and remove minWidth from Snackbar (#503)
1 parent 17a6d1b commit 68ee0e0

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

packages/blend/lib/components/Sidebar/sidebar.tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export const getSidebarTokens = (
216216
backgroundColor: foundationToken.colors.gray[25],
217217
padding: {
218218
x: foundationToken.unit[12],
219-
y: foundationToken.unit[16],
219+
y: foundationToken.unit[14],
220220
},
221221
gap: foundationToken.unit[16],
222222
borderBottom: `1px solid ${foundationToken.colors.gray[200]}`,

packages/blend/lib/components/Snackbar/Snackbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export const StyledToast: React.FC<CustomToastProps> = ({
5555
backgroundColor={snackbarTokens.backgroundColor}
5656
borderRadius={snackbarTokens.borderRadius}
5757
padding={snackbarTokens.padding}
58-
minWidth={snackbarTokens.minWidth}
5958
maxWidth={snackbarTokens.maxWidth}
6059
boxShadow={snackbarTokens.boxShadow}
6160
>
6261
{' '}
63-
<Block>
62+
{/* need to fix line height to remove margin */}
63+
<Block marginTop={4}>
6464
<SnackbarIcon variant={variant} />
6565
</Block>
6666
<Block display="flex" gap={snackbarTokens.gap}>

packages/blend/lib/components/Snackbar/snackbar.tokens.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export type SnackbarTokens = Readonly<{
2727
backgroundColor: CSSObject['backgroundColor']
2828
borderRadius: CSSObject['borderRadius']
2929
padding: CSSObject['padding']
30-
minWidth: CSSObject['minWidth']
3130
maxWidth: CSSObject['maxWidth']
3231
boxShadow: CSSObject['boxShadow']
3332
gap: CSSObject['gap']
@@ -118,7 +117,6 @@ export const getSnackbarTokens = (
118117
backgroundColor: foundationToken.colors.gray[900],
119118
borderRadius: foundationToken.border.radius[12],
120119
padding: foundationToken.unit[16],
121-
minWidth: 320,
122120
maxWidth: 350,
123121
boxShadow: foundationToken.shadows.lg,
124122
gap: foundationToken.unit[10],
@@ -192,7 +190,6 @@ export const getSnackbarTokens = (
192190
backgroundColor: foundationToken.colors.gray[900],
193191
borderRadius: foundationToken.border.radius[8],
194192
padding: foundationToken.unit[16],
195-
minWidth: 400,
196193
maxWidth: 420,
197194
boxShadow: foundationToken.shadows.lg,
198195
gap: foundationToken.unit[8],

packages/blend/lib/components/Topbar/topbar.tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const getTopbarTokens = (
106106
borderBottom: `${foundationToken.border.width[1]} solid ${foundationToken.colors.gray[200]}`,
107107
backgroundColor: 'hsla(0, 0%, 100%, 0.8)',
108108
backdropFilter: 'blur(10px)',
109-
padding: `${foundationToken.unit[12]} ${foundationToken.unit[16]}`,
109+
padding: `12.5px ${foundationToken.unit[16]}`,
110110
gap: foundationToken.unit[12],
111111

112112
toggleButton: {
@@ -199,7 +199,7 @@ export const getTopbarTokens = (
199199
borderBottom: `${foundationToken.border.width[1]} solid ${foundationToken.colors.gray[200]}`,
200200
backgroundColor: 'hsla(0, 0%, 100%, 0.8)',
201201
backdropFilter: 'blur(10px)',
202-
padding: `${foundationToken.unit[12]} ${foundationToken.unit[32]}`,
202+
padding: `12.5px ${foundationToken.unit[32]}`,
203203
gap: foundationToken.unit[16],
204204

205205
toggleButton: {

0 commit comments

Comments
 (0)