Skip to content

Commit

Permalink
feat(inline video): add videoClassName prop (#993)
Browse files Browse the repository at this point in the history
* feat: add videoClassName prop to inline-video

* Create soft-pandas-reflect.md
  • Loading branch information
pbortnick committed Aug 9, 2023
1 parent 37cc019 commit 2bd1ec6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-pandas-reflect.md
@@ -0,0 +1,5 @@
---
"@hashicorp/react-inline-video": minor
---

feat(inline video): add `videoClassName` prop
3 changes: 2 additions & 1 deletion packages/inline-video/index.tsx
Expand Up @@ -17,6 +17,7 @@ export default function InlineVideo(props: InlineVideoProps) {
url,
description,
solution,
videoClassName,
} = props

const playerProps = {
Expand Down Expand Up @@ -44,7 +45,7 @@ export default function InlineVideo(props: InlineVideoProps) {
data-testid="wpl-inline-video"
>
<div className={classNames(s.videoContainer, solution && s[solution])}>
<div className={s.video}>
<div className={classNames(s.video, videoClassName)}>
{hasWindow ? (
<>
{url.includes('wistia') ? (
Expand Down
1 change: 1 addition & 0 deletions packages/inline-video/types.ts
Expand Up @@ -9,4 +9,5 @@ export interface InlineVideoProps {
description?: string
solution?: 'infrastructure' | 'security' | 'networking' | 'applications'
gradientPosition?: 'left' | 'right' | false
videoClassName?: string
}

1 comment on commit 2bd1ec6

@vercel
Copy link

@vercel vercel bot commented on 2bd1ec6 Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.