Skip to content

Commit

Permalink
chore: remove darkest as SB option (#2679)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfulton authored and rise-erpelding committed May 7, 2024
1 parent 64ca75d commit 3bf459c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .storybook/decorators/contextsWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const withContextWrapper = makeDecorator({
/** @type string */
const scale = args.scale ? args.scale : getDefaultValue(argTypes.scale) ?? "medium";

const colors = ["light", "dark", "darkest"];
const colors = ["light", "dark"];
const scales = ["medium", "large"];

useEffect(() => {
Expand Down
11 changes: 5 additions & 6 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import DocumentationTemplate from './DocumentationTemplate.mdx';
import DocumentationTemplate from "./DocumentationTemplate.mdx";

import { withActions } from "@storybook/addon-actions/decorator";
import {
Expand Down Expand Up @@ -81,17 +81,16 @@ export const argTypes = {
description: "Controls the color context of the component.",
type: { required: true },
table: {
type: { summary: "light | dark | darkest" },
type: { summary: "light | dark" },
defaultValue: { summary: "light" },
category: "Global",
},
options: ["light", "dark", "darkest"],
options: ["light", "dark"],
control: {
type: "select",
labels: {
light: "Light (default)",
dark: "Dark",
darkest: "Darkest",
},
},
},
Expand Down Expand Up @@ -187,11 +186,11 @@ export const parameters = {
panelPosition: "bottom",
showToolbar: true,
isFullscreen: false,
actions: { argTypesRegex: '^on.*' },
actions: { argTypesRegex: "^on.*" },
options: {
storySort: {
method: "alphabetical",
order: ['Guides', ['Contributing', '*', 'Adobe Code of Conduct', 'Changelog'], 'Foundations', 'Components', ['Docs', 'Default', '*'], '*'],
order: ["Guides", ["Contributing", "*", "Adobe Code of Conduct", "Changelog"], "Foundations", "Components", ["Docs", "Default", "*"], "*"],
includeNames: true,
},
},
Expand Down

0 comments on commit 3bf459c

Please sign in to comment.