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

Commit d2dae9c

Browse files
feat: add hidden title for navigation information
1 parent a5ec098 commit d2dae9c

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

doc/slides/slides.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ The "Split" slide's Web Component could be integrated using the tag `<deckgo-sli
172172

173173
Both slots `title` and `content` are optional. Without providing one of them, the page will remain empty.
174174

175+
Note: The slot `title` is per default hidden.
176+
175177
### Attributes
176178

177179
This component offers the following options which could be set using attributes:
@@ -204,6 +206,7 @@ The following theming options will affect this component if set on its host or p
204206
| --slide-padding-start | 32px | Modify slotted ul and ol padding-inline-start |
205207
| --slide-split-align | inherit | Modify for example to center if you want to align the content in the middle |
206208
| --slide-split-text-align | inherit | Modify for example to center if you want to align the text in the middle |
209+
| --slide-split-title-display | none | Modify this attribute if you wish to display a title |
207210

208211
## Slide: Code
209212

src/components/slides/deckdeckgo-slide-author/deckdeckgo-slide-author.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ div.deckgo-slide-author {
6262
}
6363
}
6464
}
65+
66+
::slotted([slot="title"]) {
67+
display: none;
68+
}

src/components/slides/deckdeckgo-slide-author/deckdeckgo-slide-author.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class DeckdeckgoSlideAuthor implements DeckdeckgoSlide {
3333

3434
render() {
3535
return <div class="deckgo-slide">
36+
<slot name="title"></slot>
3637
<div class="deckgo-slide-author deckgo-slide-author-start">
3738
<img data-src={this.imgUrl}/>
3839
</div>

src/components/slides/deckdeckgo-slide-split/deckdeckgo-slide-split.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ div.deckgo-slide-split {
3232
::slotted([slot="title"]) {
3333
flex: 1 100%;
3434

35+
display: var(--slide-split-title-display, none);
36+
3537
padding: var(--slide-split-title-padding-top, 16px) var(--slide-split-title-padding-end, 32px) var(--slide-split-title-padding-bottom, 16px) var(--slide-split-title-padding-start, 32px);
3638
}
3739

0 commit comments

Comments
 (0)