Skip to content

Commit 2231de3

Browse files
Fix indentation in summary/details documentation
1 parent fc916d3 commit 2231de3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/components/details.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,38 @@ end
3131
```
3232

3333
```html
34-
<details id="foo" class="bar">
35-
<summary>Greetings</summary>
36-
Hello World!
37-
</details>
34+
<details id="foo" class="bar">
35+
<summary>Greetings</summary>
36+
Hello World!
37+
</details>
3838
```
3939

4040
## Example 2
4141

4242
```ruby
4343
details id: 'foo', class: 'bar' do
4444
summary id: 'baz', text: 'Greetings'
45-
pg text: 'Hello World!'
45+
paragraph text: 'Hello World!'
4646
end
4747
```
4848

4949
```html
50-
<details id="foo" class="bar">
51-
<summary id="baz">Greetings</summary>
52-
<p>Hello World!</p>
53-
</details>
50+
<details id="foo" class="bar">
51+
<summary id="baz">Greetings</summary>
52+
<p>Hello World!</p>
53+
</details>
5454
```
5555

5656
## Example 3 (Without Summary)
5757

5858
```ruby
59-
details id: 'foo' do
60-
plan "Hello World!"
61-
end
59+
details id: 'foo' do
60+
plain "Hello World!"
61+
end
6262
```
6363

6464
```html
65-
<details id="foo">
66-
Hello World!
67-
</details>
65+
<details id="foo">
66+
Hello World!
67+
</details>
6868
```

0 commit comments

Comments
 (0)