Skip to content

Commit 3257c8d

Browse files
authored
Two minor docs fixes (#1257)
* chore(docs): fix isActive condition in Stepper example * chore(docs): fix syntax in template example
1 parent 543f743 commit 3257c8d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/api-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ For instance, suppose we render a slide like this:
126126
<Stepper tagName="p" alwaysVisible values={['foo', 'bar']}>
127127
{(value, step, isActive) =>
128128
isActive
129-
? `The first stepper is not active. Step: ${step} Value: ${value}`
130-
: `The first stepper is active. Step: ${step} Value: ${value}`
129+
? `The first stepper is active. Step: ${step} Value: ${value}`
130+
: `The first stepper is not active. Step: ${step} Value: ${value}`
131131
}
132132
</Stepper>
133133
<Stepper tagName="p" alwaysVisible values={['baz', 'quux']}>
134134
{(value, step, isActive) =>
135135
isActive
136-
? `The second stepper is not active. Step: ${step} Value: ${value}`
137-
: `The second stepper is active. Step: ${step} Value: ${value}`
136+
? `The second stepper is active. Step: ${step} Value: ${value}`
137+
: `The second stepper is not active. Step: ${step} Value: ${value}`
138138
}
139139
</Stepper>
140140
</Slide>

docs/themes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Additionally, there are keys for assorted overrides for the presentation:
7070
A template in Spectacle is a fixed overlay of components that are presented on every slide. They are similar to masters in Keynote or PowerPoint. It’s a function prop that has a single optional config object containing the current slide and total slide count and returns a React Node.
7171

7272
```jsx
73-
<Deck template=(({ slideNumber, numberOfSlides }) => (
73+
<Deck template={({ slideNumber, numberOfSlides }) => (
7474
<FlexBox
7575
justifyContent="space-between"
7676
position="absolute"
@@ -85,7 +85,7 @@ A template in Spectacle is a fixed overlay of components that are presented on e
8585
Slide {slideNumber} of {numberOfSlides}
8686
</Box>
8787
</FlexBox>
88-
))>
88+
)}>
8989
```
9090

9191
## Scaled Spacing

0 commit comments

Comments
 (0)