diff --git a/gallery/src/demos/demo-ha-alert.ts b/gallery/src/demos/demo-ha-alert.ts index 91e421522b..e42c00f20e 100644 --- a/gallery/src/demos/demo-ha-alert.ts +++ b/gallery/src/demos/demo-ha-alert.ts @@ -26,6 +26,12 @@ const alerts: { description: "This is a test error alert with a title and description", type: "error", }, + { + title: "Test warning with long string", + description: + "sensor.lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum_lorem_ipsum", + type: "warning", + }, { title: "Test success alert", description: "This is a test success alert with a title and description", diff --git a/src/components/ha-alert.ts b/src/components/ha-alert.ts index 59388d7e16..a06f74b6be 100644 --- a/src/components/ha-alert.ts +++ b/src/components/ha-alert.ts @@ -45,21 +45,19 @@ class HaAlert extends LitElement { public render() { return html`