Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat(#471): styles and slot
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 19, 2019
1 parent 5f66840 commit 35dd866
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ app-create-slide {

--slide-poll-grid-column-gap: 0;

--deckgo-qrcode-size: 56px;

--deckgo-chart-fill-color-answer-1: var(--ion-color-primary);
--deckgo-chart-fill-color-answer-2: var(--ion-color-secondary);
--deckgo-chart-fill-color-answer-3: var(--ion-color-tertiary);
Expand Down
5 changes: 4 additions & 1 deletion studio/src/app/utils/editor/create-slides.utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,12 @@ export class CreateSlidesUtils {
answerSlots.push(<h2 slot={`answer-${i + 1}`}>{answer}</h2>);
});

const slide: JSX.IntrinsicElements = <deckgo-slide-poll key={uuid()}>
const slide: JSX.IntrinsicElements = <deckgo-slide-poll key={uuid()} poll-link={'https://poll.deckdeckgo.com'}>
{questionSlot}
{...answerSlots}

<p slot="how_to">Go to <a href="https://poll.deckdeckgo.com">poll.deckdeckgo.com</a> and use the code {0}</p>
<p slot="awaiting_votes">Awaiting votes</p>
</deckgo-slide-poll>;

resolve(slide);
Expand Down

0 comments on commit 35dd866

Please sign in to comment.