Skip to content

Commit

Permalink
Merge pull request #422 from guardian/ei/fabric-expandable
Browse files Browse the repository at this point in the history
Migrate fabric-expandable template to Svelte
  • Loading branch information
emma-imber authored Jan 15, 2025
2 parents 9ba679c + f8b6b22 commit 4fb13ab
Show file tree
Hide file tree
Showing 8 changed files with 266 additions and 287 deletions.
65 changes: 0 additions & 65 deletions legacy/src/fabric-expandable/test.json

This file was deleted.

76 changes: 0 additions & 76 deletions legacy/src/fabric-expandable/web/index.html

This file was deleted.

52 changes: 0 additions & 52 deletions legacy/src/fabric-expandable/web/index.js

This file was deleted.

94 changes: 0 additions & 94 deletions legacy/src/fabric-expandable/web/index.scss

This file was deleted.

24 changes: 24 additions & 0 deletions src/templates/components/icons/CrossIcon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<script lang="ts">
export let width = 30;
const height = width;
export let plus = false;
</script>

<svg {width} {height} class:plus
><path
d="M21 9.8l-.8-.8-5.2 4.8-5.2-4.8-.8.8 4.8 5.2-4.8 5.2.8.8 5.2-4.8 5.2 4.8.8-.8-4.8-5.2 4.8-5.2"
/></svg
>

<style>
svg {
vertical-align: middle;
overflow: hidden;
transition: transform 1s;
}
.plus {
transform: rotate(45deg);
}
</style>
File renamed without changes.
Loading

0 comments on commit 4fb13ab

Please sign in to comment.