Skip to content

Commit 5fc595e

Browse files
committed
Update GridThemeProvider spacer values, fix CSS variable syntax, and remove unused imports.
1 parent 3c6bcd3 commit 5fc595e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

example/.storybook/preview.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import './reset.css';
22
import '@acrool/react-grid/dist/index.css';
33

4-
import {GridThemeProvider} from '@acrool/react-grid';
54
import type {Preview} from '@storybook/react';
65

76

@@ -17,7 +16,7 @@ const preview: Preview = {
1716
},
1817
decorators: [
1918
(Story) => (
20-
<Story />
19+
<Story />
2120
),
2221
],
2322
};

example/src/components/primary/Container/Container.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export const WithBreakpointsSpacer: Story = {
8282
<GridThemeProvider gridTheme={{
8383
// spacer: '20px',
8484
spacer: {
85-
xs: '20px',
86-
lg: '40px',
85+
xs: '40px',
86+
lg: '80px',
8787
},
8888
}}>
8989
<Story />

src/GridThemeProvider/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const createBreakpointSpacer = (spacer: IGridSetting['spacer']) => {
2424
const rwdSpacer = spacer[sizeName];
2525
if(rwdSpacer){
2626
if(sizeName === 'xs'){
27-
return curr.concat(`--acrool-gutter: ${rwdSpacer}`);
27+
return curr.concat(`--acrool-gutter: ${rwdSpacer};`);
2828
}
2929

3030
return curr.concat(media[sizeName]`

0 commit comments

Comments
 (0)