From e85525eddab0503fc69a68329e179ffd94ed09cd Mon Sep 17 00:00:00 2001 From: Mario Castigliano Date: Wed, 3 Jan 2024 11:38:15 +0100 Subject: [PATCH] fix: integrity --- src/components/container/container/readme.md | 8 ++++---- src/components/container/sticky-bar/sticky-bar.ts | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/container/container/readme.md b/src/components/container/container/readme.md index c67a164839a..ad769fac7a0 100644 --- a/src/components/container/container/readme.md +++ b/src/components/container/container/readme.md @@ -33,10 +33,10 @@ Since the element's order in the DOM is also used to determine the keyboard navi ## Properties -| Name | Attribute | Privacy | Type | Default | Description | -| ---------- | ---------- | ------- | -------------------------------------------------- | --------------- | ------------------------------------------------------ | -| `expanded` | `expanded` | public | `boolean` | `false` | Whether the container is expanded. | -| `variant` | `variant` | public | `'transparent' \| 'white' \| 'milk' \| 'midnight'` | `'transparent'` | Variant of the container, like transparent, white etc. | +| Name | Attribute | Privacy | Type | Default | Description | +| ---------- | ---------- | ------- | -------------------------------------------------- | --------------- | ---------------------------------------------------- | +| `expanded` | `expanded` | public | `boolean` | `false` | Whether the container is expanded. | +| `color` | `color` | public | `'transparent' \| 'white' \| 'milk' \| 'midnight'` | `'transparent'` | Color of the container, like transparent, white etc. | ## Slots diff --git a/src/components/container/sticky-bar/sticky-bar.ts b/src/components/container/sticky-bar/sticky-bar.ts index 88728d7ccec..d3490b5aeef 100644 --- a/src/components/container/sticky-bar/sticky-bar.ts +++ b/src/components/container/sticky-bar/sticky-bar.ts @@ -33,6 +33,11 @@ export class SbbStickyBarElement extends LitElement { }); } + /** + * @internal + * Method used to override the updateComplete getter + * in order to wait for the outer sbb-container + */ public override async getUpdateComplete(): Promise { await super.getUpdateComplete(); await this.closest('sbb-container')?.updateComplete;