Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9d56eda

Browse files
Refine spacing in style constants, update snapshots
1 parent d59cb11 commit 9d56eda

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

packages/chakra-ui-core/src/CAlertDialog/tests/__snapshots__/CAlertDialog.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
99
</div>
1010
.emotion-0 {
1111
position: fixed;
12-
background: rgba(0,0,0,0.4);
12+
background: rgba( 0, 0, 0, 0.4);
1313
left: var(--space-0);
1414
top: var(--space-0);
1515
width: 100vw;
@@ -44,7 +44,7 @@ exports[`should render correctly 1`] = `
4444
z-index: var(--zIndices-modal);
4545
font-family: var(--fonts-body);
4646
background: var(--colors-white);
47-
box-shadow: 0 7px 14px 0 rgba(0,0,0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
47+
box-shadow: 0 7px 14px 0 rgba(0, 0, 0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
4848
top: var(--space-0);
4949
-webkit-margin-start: auto;
5050
margin-inline-start: auto;

packages/chakra-ui-core/src/CDrawer/tests/__snapshots__/CDrawer.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ exports[`should render correctly 1`] = `
161161
</div>
162162
.emotion-0 {
163163
position: fixed;
164-
background: rgba(0,0,0,0.4);
164+
background: rgba( 0, 0, 0, 0.4);
165165
left: var(--space-0);
166166
top: var(--space-0);
167167
width: 100vw;
@@ -194,7 +194,7 @@ exports[`should render correctly 1`] = `
194194
z-index: var(--zIndices-modal);
195195
font-family: var(--fonts-body);
196196
background: var(--colors-white);
197-
box-shadow: 0 7px 14px 0 rgba(0,0,0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
197+
box-shadow: 0 7px 14px 0 rgba(0, 0, 0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
198198
right: var(--space-0);
199199
top: var(--space-0);
200200
height: 100vh;

packages/chakra-ui-core/src/CModal/CModal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const CModalOverlay = {
270270
...rest,
271271
attrs: {
272272
pos: 'fixed',
273-
bg: 'rgba(0,0,0,0.4)',
273+
bg: 'rgba( 0, 0, 0, 0.4)',
274274
left: '0',
275275
top: '0',
276276
w: '100vw',
@@ -307,7 +307,7 @@ const CModalContent = {
307307
colorModeStyles: {
308308
light: {
309309
bg: 'white',
310-
shadow: '0 7px 14px 0 rgba(0,0,0, 0.1), 0 3px 6px 0 rgba(0, 0, 0, .07)'
310+
shadow: '0 7px 14px 0 rgba(0, 0, 0, 0.1), 0 3px 6px 0 rgba(0, 0, 0, .07)'
311311
},
312312
dark: {
313313
bg: 'gray.700',

packages/chakra-ui-core/src/CModal/tests/__snapshots__/CModal.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ exports[`should render correctly 1`] = `
161161
</div>
162162
.emotion-0 {
163163
position: fixed;
164-
background: rgba(0,0,0,0.4);
164+
background: rgba( 0, 0, 0, 0.4);
165165
left: var(--space-0);
166166
top: var(--space-0);
167167
width: 100vw;
@@ -196,7 +196,7 @@ exports[`should render correctly 1`] = `
196196
z-index: var(--zIndices-modal);
197197
font-family: var(--fonts-body);
198198
background: var(--colors-white);
199-
box-shadow: 0 7px 14px 0 rgba(0,0,0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
199+
box-shadow: 0 7px 14px 0 rgba(0, 0, 0, 0.1),0 3px 6px 0 rgba(0, 0, 0, .07);
200200
top: var(--space-0);
201201
-webkit-margin-start: auto;
202202
margin-inline-start: auto;

packages/chakra-ui-core/src/CProgress/CProgress.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const CProgress = {
182182
return {
183183
light: generateStripe({}),
184184
dark: generateStripe({
185-
color: 'rgba(0,0,0,0.1)'
185+
color: 'rgba( 0, 0, 0, 0.1)'
186186
})
187187
}
188188
},
@@ -199,7 +199,7 @@ const CProgress = {
199199
const stripeStyle = {
200200
light: generateStripe({}),
201201
dark: generateStripe({
202-
color: 'rgba(0,0,0,0.1)'
202+
color: 'rgba( 0, 0, 0, 0.1)'
203203
})
204204
}
205205

packages/chakra-ui-core/src/CThemeProvider/tests/__snapshots__/CThemeProvider.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ exports[`CThemeProvider should inject global Css variables to root 1`] = `
211211
--shadows-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);
212212
--shadows-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
213213
--shadows-outline: 0 0 0 3px rgba(66, 153, 225, 0.6);
214-
--shadows-inner: inset 0 2px 4px 0 rgba(0,0,0,0.06);
214+
--shadows-inner: inset 0 2px 4px 0 rgba( 0, 0, 0, 0.06);
215215
--shadows-none: none;
216216
--sizes-0: 0;
217217
--sizes-1: 0.25rem;

packages/chakra-ui-theme/src/theme/shadows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const shadows = {
99
'0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
1010
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
1111
outline: '0 0 0 3px rgba(66, 153, 225, 0.6)',
12-
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
12+
inner: 'inset 0 2px 4px 0 rgba( 0, 0, 0, 0.06)',
1313
none: 'none'
1414
}
1515

0 commit comments

Comments
 (0)