From 1fc04f9c783468923d0f4299645805db8381ea18 Mon Sep 17 00:00:00 2001 From: Mario Castigliano Date: Thu, 8 Aug 2024 09:46:30 +0200 Subject: [PATCH] fix: review --- src/elements-experimental/tsconfig.json | 2 +- src/elements/teaser-hero/readme.md | 13 +++++++------ src/elements/teaser-hero/teaser-hero.scss | 4 ++-- src/elements/teaser-hero/teaser-hero.ts | 2 +- src/elements/teaser-hero/teaser-hero.visual.spec.ts | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/elements-experimental/tsconfig.json b/src/elements-experimental/tsconfig.json index 01bb1e4dca..a984026acb 100644 --- a/src/elements-experimental/tsconfig.json +++ b/src/elements-experimental/tsconfig.json @@ -8,6 +8,6 @@ "@sbb-esta/lyne-elements-experimental/*": ["./*"] } }, - "include": ["./**/*.ts", "../vite-env.d.ts", "../elements/teaser-hero.ts"], + "include": ["./**/*.ts", "../vite-env.d.ts"], "exclude": ["./**/*.chromatic.stories.ts"] } diff --git a/src/elements/teaser-hero/readme.md b/src/elements/teaser-hero/readme.md index 3d8ef1b948..01e7435e65 100644 --- a/src/elements/teaser-hero/readme.md +++ b/src/elements/teaser-hero/readme.md @@ -6,6 +6,7 @@ it should be an eye-catcher and should have an emotional effect on the user with It is possible to provide the panel label via an unnamed slot, while the link text can be provided using the `link-content` slot or the `linkContent` property; similarly, the background image can be provided using the `image` slot or the `imageSrc` property. +Optionally a `sbb-chip` can be slotted in the `chip` slot, either together with the other slottable elements or alone. ```html { `without content ${state.name}`, state.with(async (setup) => { await setup.withFixture(html` - + Label `);