Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit a6d5390

Browse files
committed
Merge pull request #4710 from MauriceG/patch-18
Docs: Change the paragraph about non themable content and icons (content-themes.html)
2 parents 466a582 + e67b897 commit a6d5390

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/content/content-themes.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>Theming the content area</h2>
3333
</code>
3434

3535
<h2>Theming collapsible blocks</h2>
36-
<p>To set the color of the collapsible header, add the <code> data-theme</code> attribute to the collapsible container. The icon and body are not currently themable through data attributes, but can be styled directly with custom css.</p>
36+
<p>To set the color of the collapsible header, add the <code>data-theme</code> attribute to the collapsible container. The icons can be set with the <code>data-collapsed-icon</code> attribute for the collapsed state and the <code>data-expanded-icon</code> attribute for the expanded state of a collapsible. The body is themable through the data attribute <code>data-content-theme</code>.</p>
3737

3838
<code>
3939
&lt;div data-role=&quot;collapsible&quot; data-collapsed=&quot;true&quot; <strong> data-theme=&quot;a&quot;&gt;</strong>
@@ -109,6 +109,19 @@ <h3>I'm a themed collapsible with a themed content</h3>
109109
<p>I have <code> data-content-theme</code> attribute set manually on my container to set the color to match the content block I'm in. </p>
110110
</div>
111111
</div><!-- /themed container -->
112+
<p>Swatch <strong>"b"</strong> on content &amp; collapsible, using different icons</p>
113+
<div class="ui-body ui-body-b">
114+
<h1>H1 Heading</h1>
115+
<p>This is a paragraph that contains <strong>strong</strong>, <em>emphasized</em> and <a href="index.html">linked</a> text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.</p>
116+
<div data-role="collapsible" data-collapsed="true" data-theme="b" data-collapsed-icon="arrow-d" data-expanded-icon="arrow-u">
117+
<h3>I'm a themed collapsible</h3>
118+
<p>I have <code> data-theme</code> attribute set manually on my container to set the color to match the content block I'm in. </p>
119+
</div><!-- /collapsible -->
120+
<div data-role="collapsible" data-theme="b" data-content-theme="b" data-collapsed-icon="arrow-d" data-expanded-icon="arrow-u">
121+
<h3>I'm a themed collapsible with a themed content</h3>
122+
<p>I have <code> data-content-theme</code> attribute set manually on my container to set the color to match the content block I'm in. </p>
123+
</div>
124+
</div><!-- /themed container -->
112125

113126

114127
</div><!--/content-primary -->

0 commit comments

Comments
 (0)