Skip to content

Commit 267fc02

Browse files
authored
feat(ui5-panel): expose content css part (#3211)
1 parent 8c0225c commit 267fc02

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/main/src/Panel.hbs

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@
5151
</div>
5252

5353
<!-- content area -->
54-
<div class="ui5-panel-content" id="{{_id}}-content" tabindex="-1" style="{{styles.content}}">
54+
<div
55+
class="ui5-panel-content"
56+
id="{{_id}}-content"
57+
tabindex="-1"
58+
style="{{styles.content}}"
59+
part="content"
60+
>
5561
<slot></slot>
5662
</div>
5763
</div>

packages/main/src/Panel.js

+9
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ const metadata = {
217217
* clockwise/counter-clockwise.</li>
218218
* </ul>
219219
*
220+
* <h3>CSS Shadow Parts</h3>
221+
*
222+
* <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
223+
* <br>
224+
* The <code>ui5-panel</code> exposes the following CSS Shadow Parts:
225+
* <ul>
226+
* <li>content - Used to style the wrapper of the content</li>
227+
* </ul>
228+
*
220229
* <h3>ES6 Module Import</h3>
221230
*
222231
* <code>import "@ui5/webcomponents/dist/Panel";</code>

0 commit comments

Comments
 (0)