Skip to content

Commit 18ff5c5

Browse files
Fix broken dropdowns
1 parent 5d1d79b commit 18ff5c5

File tree

1 file changed

+59
-36
lines changed

1 file changed

+59
-36
lines changed

doc/content/user_guide/web-components.md

Lines changed: 59 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -51,39 +51,53 @@ Here are some of the available button-style links, also using semantic
5151
colors:
5252

5353
{{< button
54-
style="info"
55-
label="Info"
56-
link="http://example.com/" >}}
54+
style="info"
55+
label="Info"
56+
link="http://example.com/"
57+
58+
> }}
5759
5860
{{< button
59-
style="success"
60-
label="Success"
61-
link="http://example.com/" >}}
61+
style="success"
62+
label="Success"
63+
link="http://example.com/"
64+
65+
> }}
6266
6367
{{< button
64-
style="warning"
65-
label="Warning"
66-
link="http://example.com/" >}}
68+
style="warning"
69+
label="Warning"
70+
link="http://example.com/"
71+
72+
> }}
6773
6874
{{< button
69-
style="danger"
70-
label="Danger"
71-
link="http://example.com/" >}}
75+
style="danger"
76+
label="Danger"
77+
link="http://example.com/"
78+
79+
> }}
7280
7381
{{< button
74-
style="muted"
75-
label="Muted"
76-
link="http://example.com/" >}}
82+
style="muted"
83+
label="Muted"
84+
link="http://example.com/"
85+
86+
> }}
7787
7888
{{< button
79-
style="light"
80-
label="Light"
81-
link="http://example.com/" >}}
89+
style="light"
90+
label="Light"
91+
link="http://example.com/"
92+
93+
> }}
8294
8395
{{< button
84-
style="dark"
85-
label="Dark"
86-
link="http://example.com/" >}}
96+
style="dark"
97+
label="Dark"
98+
link="http://example.com/"
99+
100+
> }}
87101
88102
{{< admonition note >}}
89103
[Sphinx Design
@@ -135,11 +149,13 @@ Content of the third card.
135149
title = 'A card with a dropdown menu'
136150
body = '''
137151
{{< dropdown
138-
title="Click to expand dropdown"
139-
icon="fa-solid fa-eye"
140-
body="Hidden content" >}}
141-
'''
142-
{{< /card >}}
152+
title="Click to expand dropdown"
153+
icon="fa-solid fa-eye"
154+
body="Hidden content"
155+
156+
> }}
157+
> '''
158+
> {{< /card >}}
143159
144160
{{< card >}}
145161
title = 'A clickable card'
@@ -281,29 +297,36 @@ An admonition for reference.
281297
And some admonition content.
282298
:::
283299

284-
{{< dropdown >}}
285-
body = 'And with no title and some content!'
300+
{{< dropdown body="And with no title and some content!" >}}
286301

287302
{{< dropdown
288-
title="With a title"
289-
body="And some content!" >}}
303+
title="With a title"
304+
body="And some content!"
305+
306+
> }}
290307
291-
{{< dropdown >}}
308+
{{< dropdown
292309
title="With a title and icon"
293310
icon="fa-solid fa-lock-open"
294-
body="And some content and an icon!" >}}
311+
body="And some content and an icon!"
312+
313+
> }}
295314
296-
{{< dropdown >}}
315+
{{< dropdown
297316
title="A primary color dropdown"
298317
icon="fa-solid fa-lock-open"
299318
color="primary"
300-
body="And some content and an icon!" >}}
319+
body="And some content and an icon!"
320+
321+
> }}
301322
302-
{{< dropdown >}}
323+
{{< dropdown
303324
title="A secondary color dropdown"
304325
icon="fa-solid fa-eye"
305326
color="secondary"
306-
body="And some content and an icon!" >}}
327+
body="And some content and an icon!"
328+
329+
> }}
307330
308331
## Copybuttons
309332

0 commit comments

Comments
 (0)