diff --git a/.storybook/assets/index.css b/.storybook/assets/index.css index 95b4d83897d..d35ceabd91c 100644 --- a/.storybook/assets/index.css +++ b/.storybook/assets/index.css @@ -36,6 +36,30 @@ body:lang(he) { font-family: var(--spectrum-font-family-he); } +#archived-notice { + background-color: rgb(215, 50, 32); + color: rgb(255, 255, 255); + font-family: + adobe-clean, + "Source Sans Pro", + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Ubuntu, + "Trebuchet MS", + "Lucida Grande", + sans-serif; + font-size: 16px; + padding: 6px; + text-align: center; +} + +#archived-notice a { + color: rgb(255, 255, 255); + text-decoration: underline; +} + /* Hide the SVG elements that only include references */ svg:has(symbol):not(:has(use)) { display: none; diff --git a/.storybook/manager.js b/.storybook/manager.js index 53b86a56602..307ab6d4f22 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -9,6 +9,14 @@ import pkg from "./package.json"; const root = document.body ?? document.documentElement; if (root) root.classList.add("spectrum", "spectrum--light", "spectrum--medium"); +const archivedNotice = document.createElement("div"); +archivedNotice.id = "archived-notice"; +archivedNotice.innerHTML = ` +

This documentation is archived. It is no longer being updated, but is available for reference.
View the Spectrum Web Components contribution guidelines for more information on how to contribute to the project.

+`; + +root.insertBefore(archivedNotice, root.firstChild); + addons.setConfig({ theme: create({ base: "light",