Skip to content

Commit 7afe545

Browse files
authored
test(alertbanner): updates alertbanner test file to restore text and action button label control functionality (#3950)
* fix(alertbanner): updates alertbanner test file to restore text and action button label control functionality * chore(alertbanner): remove unnecessary changeset * chore(alertbanner): revert story text; simplify banner arg
1 parent 6593841 commit 7afe545

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

components/alertbanner/stories/alertbanner.test.js

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
1-
import { Container, Variants } from "@spectrum-css/preview/decorators";
1+
import { Variants } from "@spectrum-css/preview/decorators";
22
import { Template } from "./template.js";
33

4-
/**
5-
* Examples of options for contextual action button and close button.
6-
*/
7-
export const AlertBannerVariantsTemplate = (args, context) => Container({
8-
withBorder: false,
9-
direction: "column",
10-
containerStyles: { "align-items": "stretch" },
11-
wrapperStyles: { "align-items": "stretch" },
12-
content: [
13-
Template({
14-
...args,
15-
variant: "neutral",
16-
text: "Alert banner message. Use a short phrase to describe what's happening.",
17-
actionButtonText: "Action",
18-
}, context),
19-
Template({
20-
...args,
21-
variant: "info",
22-
text: "Alert banner message. Use a short phrase to describe what's happening.",
23-
actionButtonText: "Action",
24-
}, context),
25-
Template({
26-
...args,
27-
variant: "negative",
28-
text: "Alert banner message. Use a short phrase to describe what's happening.",
29-
actionButtonText: "Action",
30-
}, context),
31-
],
32-
}, context);
33-
344
export const AlertBannerGroup = Variants({
35-
Template: AlertBannerVariantsTemplate,
5+
Template,
366
TestTemplate: Template,
377
stateDirection: "column",
388
wrapperStyles: {

0 commit comments

Comments
 (0)