Skip to content

Commit b021e98

Browse files
marissahuysentruytcastastrophe
authored andcommitted
chore(assetcard,avatar,badge): remove mdx files (#3408)
* docs(assetcard): remove MDX file - adds some missing documentation regarding stories, classes and custom properties - corrects sentence-casing of story names * docs(avatar): remove MDX file - adds some missing documentation regarding stories - reorganizes some information to sit with appropriate story/variant - migrates documentation from MDX file to the stories file instead * chore(avatar): fix disabled test arguments * docs(badge): remove MDX file - adds notice badge variants to semantic story - adds sizing story to docs page - migrates documentation in MDX to stories.js instead * docs(badge): pr fixes - remove empty doc block line - remove html wrapper in favor of content array - add notice badge to test coverage
1 parent 22e5ef9 commit b021e98

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

components/badge/stories/badge.stories.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Sizes } from "@spectrum-css/preview/decorators/utilities.js";
12
import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js";
23
import { ArgGrid } from "@spectrum-css/preview/decorators";
34
import { Sizes } from "@spectrum-css/preview/decorators/utilities.js";
@@ -40,7 +41,7 @@ export default {
4041
type: { summary: "string" },
4142
category: "Component",
4243
},
43-
options: ["neutral", "accent", "informative", "positive", "negative", "gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"],
44+
options: ["neutral", "accent", "informative", "positive", "negative", "notice", "gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"],
4445
control: "select",
4546
},
4647
fixed: {
@@ -84,7 +85,7 @@ Default.args = {
8485
export const SemanticVariants = (args, context) => ArgGrid({
8586
Template,
8687
argKey: "variant",
87-
options: ["neutral", "accent", "informative", "positive", "negative"],
88+
options: ["neutral", "accent", "informative", "positive", "negative", "notice"],
8889
withBorder: false,
8990
...args,
9091
}, context);

components/badge/stories/badge.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const BadgeGroup = Variants({
1717
Template: Badges,
1818
sizeDirection: "row",
1919
testData: [
20-
...["neutral", "accent", "informative", "positive", "negative"].map((variant) =>
20+
...["neutral", "accent", "informative", "positive", "negative", "notice"].map((variant) =>
2121
({
2222
testHeading: capitalize(variant),
2323
wrapperStyles: {

components/badge/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Container } from "@spectrum-css/preview/decorators";
12
import { Template as Icon } from "@spectrum-css/icon/stories/template.js";
23
import { Container, getRandomId } from "@spectrum-css/preview/decorators";
34
import { html } from "lit";

0 commit comments

Comments
 (0)