Skip to content

Commit ec6e175

Browse files
agcolomapsdehal
authored andcommitted
Collapsible: Added contentTheme option and fixed theme default
Fixes gh-209 Closes gh-293
1 parent 25ab146 commit ec6e175

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

entries/collapsible.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@
148148
</desc>
149149
</type>
150150
</option>
151+
<option name="contentTheme" default="null" example-value='"b"'>
152+
<desc>Sets the color scheme (swatch) for the collapsible content. It accepts a single letter from a-z that maps to the swatches included in your theme.
153+
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
154+
<p>Possible values: swatch letter (a-z).</p>
155+
<p>This option is also exposed as a data attribute: <code>data-content-theme="b"</code>.</p>
156+
</desc>
157+
<type name="String" />
158+
</option>
151159
<option name="corners" default="true" example-value="false">
152160
<desc>Applies the theme border-radius if set to true.
153161
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
@@ -201,7 +209,7 @@
201209
</desc>
202210
<type name="Boolean" />
203211
</option>
204-
<option name="theme" default="null, inherited from parent" example-value='"b"'>
212+
<option name="theme" default="null" example-value='"b"'>
205213
<desc>Sets the color scheme (swatch) for the collapsible. It accepts a single letter from a-z that maps to the swatches included in your theme.
206214
<p>If the value is unset for an individual collapsible container, but that container is part of a collapsible set, then the value is inherited from the parent collapsible set.</p>
207215
<p>Possible values: swatch letter (a-z).</p>

0 commit comments

Comments
 (0)