forked from web-padawan/aybolit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cxl-ui): add cxl-jw-player-transcript element
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/cxl-ui/scss/cxl-jw-player/cxl-jw-player-transcript-shadow.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host(:not([hidden])) { | ||
display: block; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/cxl-ui/scss/cxl-jw-player/cxl-jw-player-transcript.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host(:not([hidden])) { | ||
display: block; | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/cxl-ui/src/components/cxl-jw-player/cxl-jw-player-transcript/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import style from '../../../styles/cxl-jw-player/cxl-jw-player-transcript-css'; | ||
import shadowStyle from '../../../styles/cxl-jw-player/cxl-jw-player-transcript-shadow-css'; | ||
|
||
@customElement('cxl-jw-player-transcript') | ||
export class CXLJWPlayerTranscriptElement extends LitElement { | ||
static get styles() { | ||
return [shadowStyle]; | ||
} | ||
|
||
render() { | ||
return html`<slot></slot>`; | ||
} | ||
|
||
async __setup() { | ||
await super.__setup(); | ||
|
||
this.__addStyle(style); | ||
} | ||
} |