Skip to content

Collapsible: Added contentTheme option and fixed theme default #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion entries/collapsible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@
</desc>
</type>
</option>
<option name="contentTheme" default="null" example-value='"b"'>
<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.
<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>
<p>Possible values: swatch letter (a-z).</p>
<p>This option is also exposed as a data attribute: <code>data-content-theme="b"</code>.</p>
</desc>
<type name="String" />
</option>
<option name="corners" default="true" example-value="false">
<desc>Applies the theme border-radius if set to true.
<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>
Expand Down Expand Up @@ -201,7 +209,7 @@
</desc>
<type name="Boolean" />
</option>
<option name="theme" default="null, inherited from parent" example-value='"b"'>
<option name="theme" default="null" example-value='"b"'>
<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.
<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>
<p>Possible values: swatch letter (a-z).</p>
Expand Down