Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .storybook/assets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
<p>This documentation is archived. It is no longer being updated, but is available for reference. <br>View the <a href='https://github.com/adobe/spectrum-web-components/blob/main/CONTRIBUTOR-DOCS/README.md'>Spectrum Web Components contribution guidelines</a> for more information on how to contribute to the project.</p>
`;

root.insertBefore(archivedNotice, root.firstChild);

addons.setConfig({
theme: create({
base: "light",
Expand Down
Loading