Skip to content

Commit

Permalink
feat(closebutton)!: migrate to S2 (#2564)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
2 people authored and castastrophe committed Apr 24, 2024
1 parent 7affe27 commit 1da4dfc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions components/closebutton/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ export const Template = ({
}) => {
let iconName = "Cross300";
switch (size) {
case "s":
iconName = "Cross200";
break;
case "l":
iconName = "Cross400";
break;
case "xl":
iconName = "Cross500";
break;
default:
iconName = "Cross300";
case "s":
iconName = "Cross200";
break;
case "l":
iconName = "Cross400";
break;
case "xl":
iconName = "Cross500";
break;
default:
iconName = "Cross300";
}

return html`
Expand Down

0 comments on commit 1da4dfc

Please sign in to comment.