Skip to content

Commit

Permalink
Merge pull request #719 from umbraco/v1/feature/uui-box-header-paddin…
Browse files Browse the repository at this point in the history
…g-css

append new css custom property to overwrite header padding
  • Loading branch information
JesmoDev authored Jan 23, 2024
2 parents 9404596 + 4ae5484 commit b134f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/uui-box/lib/uui-box.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function slotHasContent(target: EventTarget | null): boolean {
* @slot header - header area, use this for things that are not the headline but are located in the header.
* @slot header-actions - right-side of the box header, use this to append some actions that are general for the topic of this box.
* @slot - area for the content of the box
* @cssprop --uui-box-header-padding - overwrite the header padding
* @cssprop --uui-box-default-padding - overwrite the box padding
*
*/
Expand Down Expand Up @@ -128,7 +129,10 @@ export class UUIBoxElement extends LitElement {
display: flex;
column-gap: var(--uui-size-space-5);
border-bottom: 1px solid var(--uui-color-divider-standalone);
padding: var(--uui-size-space-4) var(--uui-size-space-5);
padding: var(
--uui-box-header-padding,
var(--uui-size-space-4) var(--uui-size-space-5)
);
}
slot:not([name]) {
Expand Down

0 comments on commit b134f77

Please sign in to comment.