Skip to content

Commit

Permalink
fix: Add missed boxShadow prop in Box reactPropsRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro587 committed Aug 2, 2024
1 parent c25258a commit ad97344
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ exports[`<Box /> box shadow shadow "dark-hight" 1`] = `
}
<div
boxshadow="dark-hight"
class="emotion-0"
>
Message
Expand All @@ -124,7 +123,6 @@ exports[`<Box /> box shadow shadow "dark-medium" 1`] = `
}
<div
boxshadow="dark-medium"
class="emotion-0"
>
Message
Expand All @@ -139,7 +137,6 @@ exports[`<Box /> box shadow shadow "light-hight" 1`] = `
}
<div
boxshadow="light-hight"
class="emotion-0"
>
Message
Expand All @@ -154,7 +151,6 @@ exports[`<Box /> box shadow shadow "light-low" 1`] = `
}
<div
boxshadow="light-low"
class="emotion-0"
>
Message
Expand All @@ -169,7 +165,6 @@ exports[`<Box /> box shadow shadow "light-medium" 1`] = `
}
<div
boxshadow="light-medium"
class="emotion-0"
>
Message
Expand All @@ -184,7 +179,6 @@ exports[`<Box /> box shadow shadow "light-soft" 1`] = `
}
<div
boxshadow="light-soft"
class="emotion-0"
>
Message
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/src/Box/box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type BoxProps<
*
*/

const reactPropsRegex = /^(as|background|borderColor|borderWidth|borderStyle|borderPosition|borderRadius)$/;
const reactPropsRegex = /^(as|background|borderColor|borderWidth|borderStyle|borderPosition|borderRadius|boxShadow)$/;

/**
* Styles.
Expand Down

0 comments on commit ad97344

Please sign in to comment.