diff --git a/site/assets/scss/_alerts.scss b/site/assets/scss/_alerts.scss new file mode 100644 index 0000000000..2b4076ceb0 --- /dev/null +++ b/site/assets/scss/_alerts.scss @@ -0,0 +1,11 @@ +.bd-ods-incompatibility-alert { + .alert-heading ~ p { + &:not(:first-of-type) { + margin-top: map-get($spacers, 1); + } + + > a { + font-weight: 700; + } + } +} diff --git a/site/assets/scss/docs.scss b/site/assets/scss/docs.scss index 90cb769c60..d4f9ab3cf1 100644 --- a/site/assets/scss/docs.scss +++ b/site/assets/scss/docs.scss @@ -56,6 +56,7 @@ $enable-cssgrid: true; // stylelint-disable-line scss/dollar-variable-default @import "algolia"; // Boosted mod +@import "alerts"; @import "mixins"; @import "boosted"; @import "tarteaucitron"; diff --git a/site/content/docs/5.1/components/scrollspy.md b/site/content/docs/5.1/components/scrollspy.md index c178a15127..37c76b949a 100644 --- a/site/content/docs/5.1/components/scrollspy.md +++ b/site/content/docs/5.1/components/scrollspy.md @@ -6,6 +6,12 @@ group: components toc: true --- +{{< ods-incompatibility-alert >}} +This component gathers technical utilities linked to the Navbar component and most of those examples are not compatible with the Orange Design System. + +Refer to [Orange navbar]({{< docsref "/components/orange-navbar" >}}) and [Nav & tabs]({{< docsref "/components/navs-tabs" >}}). +{{< /ods-incompatibility-alert >}} + ## How it works Scrollspy has a few requirements to function properly: @@ -44,7 +50,7 @@ Scroll the area below the navbar and watch the active class change. The dropdown