diff --git a/src/elements/lead-container/lead-container.scss b/src/elements/lead-container/lead-container.scss index b7fab6e027..b08d33c3e0 100644 --- a/src/elements/lead-container/lead-container.scss +++ b/src/elements/lead-container/lead-container.scss @@ -52,6 +52,10 @@ margin-block-start: 0; } +::slotted(sbb-notification.sbb-lead-container-spacing) { + margin-block-end: var(--sbb-spacing-responsive-xxxs); +} + ::slotted(.sbb-lead-container-lead-text) { margin-block: 0 var(--sbb-spacing-responsive-s); } diff --git a/src/elements/lead-container/lead-container.stories.ts b/src/elements/lead-container/lead-container.stories.ts index 427111b4b9..15fc4a0f52 100644 --- a/src/elements/lead-container/lead-container.stories.ts +++ b/src/elements/lead-container/lead-container.stories.ts @@ -5,6 +5,7 @@ import '../alert.js'; import '../breadcrumb.js'; import '../image.js'; import '../link/block-link/block-link.js'; +import '../notification.js'; import '../title.js'; import './lead-container.js'; @@ -16,7 +17,7 @@ const DefaultTemplate = (): TemplateResult => html` html` ultricies in tincidunt quis, mattis eu quam. Nulla sit amet lorem fermentum, molestie nunc ut, hendrerit risus.

+ + Vestibulum rutrum elit et lacus sollicitudin, quis malesuada lorem vehicula. Suspendisse at + augue quis tellus vulputate tempor. Vivamus urna velit, varius nec est ac, mollis efficitur + lorem. Quisque non nisl eget massa interdum tempus. Praesent vel feugiat metus. +

Other content. Vestibulum rutrum elit et lacus sollicitudin, quis malesuada lorem vehicula. Suspendisse at augue quis tellus vulputate tempor. Vivamus urna velit, varius nec est ac, diff --git a/src/elements/lead-container/lead-container.visual.spec.ts b/src/elements/lead-container/lead-container.visual.spec.ts index 5da56ede1f..eddc619b21 100644 --- a/src/elements/lead-container/lead-container.visual.spec.ts +++ b/src/elements/lead-container/lead-container.visual.spec.ts @@ -12,6 +12,7 @@ import '../alert.js'; import '../breadcrumb.js'; import '../image.js'; import '../link/block-link/block-link.js'; +import '../notification.js'; import '../title.js'; import './lead-container.js'; @@ -27,7 +28,7 @@ describe(`sbb-lead-container`, () => { ${image} @@ -59,6 +60,11 @@ describe(`sbb-lead-container`, () => { tincidunt quis, mattis eu quam. Nulla sit amet lorem fermentum, molestie nunc ut, hendrerit risus.

+ + Vestibulum rutrum elit et lacus sollicitudin, quis malesuada lorem vehicula. Suspendisse at + augue quis tellus vulputate tempor. Vivamus urna velit, varius nec est ac, mollis efficitur + lorem. Quisque non nisl eget massa interdum tempus. Praesent vel feugiat metus. +

Other content. Vestibulum rutrum elit et lacus sollicitudin, quis malesuada lorem vehicula. Suspendisse at augue quis tellus vulputate tempor. Vivamus urna velit, varius nec est ac, diff --git a/src/elements/lead-container/readme.md b/src/elements/lead-container/readme.md index 14ad41f683..b503ae9976 100644 --- a/src/elements/lead-container/readme.md +++ b/src/elements/lead-container/readme.md @@ -7,6 +7,8 @@ However, consumers can use the predefined classes As per design rules, the spacings are defined as following: ```html + + @@ -15,6 +17,8 @@ As per design rules, the spacings are defined as following:

+ + ... ``` @@ -25,7 +29,7 @@ Full example with applied spacings (CSS classes) in content: Title

Lead text.

+ + Vestibulum rutrum elit et lacus sollicitudin, quis malesuada lorem vehicula. Suspendisse at + augue quis tellus vulputate tempor. Vivamus urna velit, varius nec est ac, mollis efficitur + lorem. Quisque non nisl eget massa interdum tempus. Praesent vel feugiat metus. +

Other content.

```