Skip to content

Commit 4ae5484

Browse files
committed
append new css custom property to overwrite header padding
1 parent 9404596 commit 4ae5484

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/uui-box/lib/uui-box.element.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function slotHasContent(target: EventTarget | null): boolean {
1818
* @slot header - header area, use this for things that are not the headline but are located in the header.
1919
* @slot header-actions - right-side of the box header, use this to append some actions that are general for the topic of this box.
2020
* @slot - area for the content of the box
21+
* @cssprop --uui-box-header-padding - overwrite the header padding
2122
* @cssprop --uui-box-default-padding - overwrite the box padding
2223
*
2324
*/
@@ -128,7 +129,10 @@ export class UUIBoxElement extends LitElement {
128129
display: flex;
129130
column-gap: var(--uui-size-space-5);
130131
border-bottom: 1px solid var(--uui-color-divider-standalone);
131-
padding: var(--uui-size-space-4) var(--uui-size-space-5);
132+
padding: var(
133+
--uui-box-header-padding,
134+
var(--uui-size-space-4) var(--uui-size-space-5)
135+
);
132136
}
133137
134138
slot:not([name]) {

0 commit comments

Comments
 (0)