Data update failed due to missing internet connection
```
+
+## Feature Flag: Bordered Alert
+
+The Alert border feature flag is not disabled by default. To enable it, either set the
+`$alert-enable-bordered` Sass feature flag to `true` or use the `spirit-feature-alert-enable-bordered`
+CSS class on any parent of the Alert.
+
+For more info, see main [README][readme-feature-flags].
+
+### ⚠️ DEPRECATION NOTICE
+
+The Alert will be bordered by default in the next major release.
+
+[What are deprecations?][readme-deprecations]
+
+[readme-deprecations]: https://github.com/lmc-eu/spirit-design-system/tree/main/packages/web/README.md#deprecations
+[readme-feature-flags]: https://github.com/lmc-eu/spirit-design-system/tree/main/packages/web/README.md#feature-flags
diff --git a/packages/web/src/scss/components/Alert/_Alert.scss b/packages/web/src/scss/components/Alert/_Alert.scss
index 7c2aae799b..36b8c8dbe0 100644
--- a/packages/web/src/scss/components/Alert/_Alert.scss
+++ b/packages/web/src/scss/components/Alert/_Alert.scss
@@ -1,4 +1,5 @@
@use 'theme';
+@use '../../settings/feature-flags';
@use '../../tools/dictionaries';
@use '../../tools/typography';
@@ -12,6 +13,18 @@
width: 100%;
padding: theme.$padding;
border-radius: theme.$border-radius;
+
+ // @deprecated The feature flag will be removed in the next major version.
+ // Migration: delete this feature flag and make the bordered version the default.
+ @if feature-flags.$alert-enable-bordered {
+ border: theme.$border-width theme.$border-style var(--alert-color);
+ }
+}
+
+// @deprecated The feature flag will be removed in the next major version.
+// Migration: delete this feature flag and make the bordered version the default.
+.spirit-feature-alert-enable-bordered .Alert {
+ border: theme.$border-width theme.$border-style var(--alert-color);
}
.Alert strong {
diff --git a/packages/web/src/scss/components/Alert/_theme.scss b/packages/web/src/scss/components/Alert/_theme.scss
index 5f485dcd74..f74446895d 100644
--- a/packages/web/src/scss/components/Alert/_theme.scss
+++ b/packages/web/src/scss/components/Alert/_theme.scss
@@ -7,6 +7,8 @@ $typography: tokens.$body-medium-text-regular;
$gap: tokens.$space-600;
$padding: tokens.$space-600;
$border-radius: tokens.$radius-200;
+$border-style: tokens.$border-style-100;
+$border-width: tokens.$border-width-100;
$content-max-width: 640px;
diff --git a/packages/web/src/scss/components/Alert/index.html b/packages/web/src/scss/components/Alert/index.html
index 057d7b40dd..97b32a2665 100644
--- a/packages/web/src/scss/components/Alert/index.html
+++ b/packages/web/src/scss/components/Alert/index.html
@@ -123,4 +123,47 @@
Alert Icons
+
+
+
Feature Flag: Bordered Alert
+
+
+
+
+
+
We sent you an activation link to email spirit@lmc.eu. See FAQ for more info.
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam at excepturi laudantium magnam mollitia
+ perferendis reprehenderit, voluptate. Cum delectus dicta ducimus eligendi excepturi natus perferendis
+ provident unde. Eveniet, iste, molestiae? See FAQ for more info.
+
+
+
+
+
+
Warning! Data update failed due to missing internet connection. See FAQ for more info.
+
+
+
+
+
Data update failed due to missing internet connection. See FAQ for more info.