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

Commit 5fa54f4

Browse files
fix(#32): list reveal
1 parent f5660fd commit 5fa54f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/slides/deckdeckgo-slide.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class DeckdeckgoSlideUtils {
1919
return;
2020
}
2121

22-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll(revealShowFirst ? '[slot] > li:not(:first-child), [slot] > p:not(:first-child), [slot] > span:not(:first-child), [slot] > img:not(:first-child)' : '[slot] > li, [slot] > p, [slot] > span, [slot] > img');
22+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll(revealShowFirst ? '[slot] li:not(:first-child), [slot] > p:not(:first-child), [slot] > span:not(:first-child), [slot] > img:not(:first-child)' : '[slot] li, [slot] > p, [slot] > span, [slot] > img');
2323

2424
if (!elements) {
2525
resolve();
@@ -34,7 +34,7 @@ export class DeckdeckgoSlideUtils {
3434

3535
private static showRevealElement(el: HTMLElement): Promise<boolean> {
3636
return new Promise<boolean>((resolve) => {
37-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > span, [slot] > img');
37+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] li, [slot] > p, [slot] > span, [slot] > img');
3838

3939
let couldSwipe: boolean = true;
4040

@@ -55,7 +55,7 @@ export class DeckdeckgoSlideUtils {
5555

5656
private static hideRevealElement(el: HTMLElement): Promise<boolean> {
5757
return new Promise<boolean>((resolve) => {
58-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > span, [slot] > img');
58+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] li, [slot] > p, [slot] > span, [slot] > img');
5959

6060
let couldSwipe: boolean = true;
6161

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1 slot="title">A 16/9 video</h1>
5252
<deckgo-slide-content reveal="true">
5353
<h1 slot="title">DeckDeckGo</h1>
5454
<div slot="content">
55-
<ul slot="content">
55+
<ul>
5656
<li>Use HTML and CSS to create <strong>without effort</strong> your presentation</li>
5757
<li><strong>Ionic</strong> components and icons to create your content</li>
5858
<li><strong>Style</strong> your presentation quickly</li>
@@ -105,7 +105,7 @@ <h1 slot="title">Not reveal list</h1>
105105
<deckgo-slide-title reveal="true" reveal-show-first="true">
106106
<h1 slot="title">Reveal list</h1>
107107
<div slot="content">
108-
<ul slot="content">
108+
<ul>
109109
<li>Blue cheese</li>
110110
<li>Feta</li>
111111
<li>Gruyère</li>

0 commit comments

Comments
 (0)