Skip to content

Commit 2191a0f

Browse files
Melissa Thompsonpfulton
authored andcommitted
feat(closebutton)!: migrate to S2 (#2564)
BREAKING CHANGE: migrates Close Button to Spectrum 2 Additionally: * test: increase chromatic coverage * fix(closebutton): pass staticColor as arg for SB display * chore(closebutton): remove themes dir * docs(closebutton): adds s2 migration notes * chore(closebutton): specify s2 tokens release for dependency --------- Co-authored-by: Patrick Fulton <pfulton@adobe.com>
1 parent 7d598c4 commit 2191a0f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

components/closebutton/stories/template.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ export const Template = ({
2121
}) => {
2222
let iconName = "Cross300";
2323
switch (size) {
24-
case "s":
25-
iconName = "Cross200";
26-
break;
27-
case "l":
28-
iconName = "Cross400";
29-
break;
30-
case "xl":
31-
iconName = "Cross500";
32-
break;
33-
default:
34-
iconName = "Cross300";
24+
case "s":
25+
iconName = "Cross200";
26+
break;
27+
case "l":
28+
iconName = "Cross400";
29+
break;
30+
case "xl":
31+
iconName = "Cross500";
32+
break;
33+
default:
34+
iconName = "Cross300";
3535
}
3636

3737
return html`

0 commit comments

Comments
 (0)