Skip to content

Commit

Permalink
fix: 🐛 add more specificity to className props
Browse files Browse the repository at this point in the history
  • Loading branch information
samAbeywickrama committed Aug 6, 2019
1 parent 175d762 commit dd160b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/VideoBg.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ const VideoBg = ({
children,
el: El = "div"
}) => (
<El className={`${wrapperClass} ${classNames.wrapper}`}>
<El
className={`${classNames.wrapper}${wrapperClass ? " " + wrapperClass : ""}`}
>
<video
className={`${videoClass} ${classNames.video}`}
className={`${classNames.video}${videoClass ? " " + videoClass : ""}`}
loop={loop}
muted={muted}
poster={poster}
Expand Down
4 changes: 2 additions & 2 deletions src/__snapshots__/VideoBg.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

exports[`renders properly 1`] = `
<div
className="undefined undefined"
className="undefined"
>
<video
autoPlay={true}
className="undefined undefined"
className="undefined"
loop={true}
muted={true}
/>
Expand Down

0 comments on commit dd160b6

Please sign in to comment.