Skip to content

Commit 3cab197

Browse files
committed
Up th e size limit
1 parent 479ff60 commit 3cab197

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
"size-limit": [
5656
{
5757
"path": "dist/components.cjs.production.min.js",
58-
"limit": "150 KB"
58+
"limit": "170 KB"
5959
},
6060
{
6161
"path": "dist/components.esm.js",
62-
"limit": "150 KB"
62+
"limit": "170 KB"
6363
}
6464
],
6565
"devDependencies": {

src/overlays/Modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const modalCSS = css`
2929
opacity: 0;
3030
&.ac-modal--slideOver {
3131
border-left: 1px solid ${theme.colors.gray500};
32+
box-shadow: -10px 0px 30px 10px rgba(0, 0, 0, 0.1);
3233
/* Start offset by the animation distance */
3334
transform: translateX(500px);
3435

src/overlays/Underlay.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ const underlayCSS = css`
88
visibility: none;
99
1010
// Exit animations
11-
transition: opacity 100ms cubic-bezier(0, 0, 0.4, 1) 100ms,
12-
visibility 0ms linear 100ms;
11+
transition: opacity 0.2s ease-out 0.2s;
1312
&.is-open {
1413
/* Entry animations */
15-
transition: opacity 100ms cubic-bezier(0.5, 0, 1, 1) 0;
16-
14+
transition: opacity 0.2s ease-in 0.1s;
1715
visibility: visible;
1816
opacity: 1;
1917
pointer-events: auto;

stories/SlideOver.stories.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const meta: Meta = {
2626
export default meta;
2727

2828
const Template: Story<DialogProps> = args => {
29-
args.title = args.title || 'Title';
29+
const { isDismissable, onDismiss, ...props } = args;
30+
props.title = props.title || 'Title';
3031
const [isOpen, setIsOpen] = useState(false);
3132
return (
3233
<Provider>
@@ -39,7 +40,7 @@ const Template: Story<DialogProps> = args => {
3940
onDismiss={() => setIsOpen(false)}
4041
>
4142
{isOpen && (
42-
<Dialog {...args}>
43+
<Dialog {...props}>
4344
<Text>hello</Text>
4445
</Dialog>
4546
)}

0 commit comments

Comments
 (0)