Skip to content

Commit

Permalink
feat: use vite to inline svg into compiled css so that consuming apps…
Browse files Browse the repository at this point in the history
… don't have to serve brand logo
  • Loading branch information
tillywoodfield committed Nov 12, 2024
1 parent 94199ba commit 31b398c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 88 deletions.
1 change: 0 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const config: StorybookConfig = {
framework: "@storybook/web-components-vite",
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: ["@storybook/addon-essentials"],
staticDirs: ["../static"],
docs: {
autodocs: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.iati-brand-background {
$var-background-image: --background-image;
#{$var-background-image}: url("/images/marque-white.svg");
#{$var-background-image}: url("/src/assets/svg/marque-white.svg");

background-color: $color-teal-90;
display: grid;
Expand Down
27 changes: 0 additions & 27 deletions src/scss/components/brand-background/brand-background.mdx

This file was deleted.

59 changes: 0 additions & 59 deletions static/images/marque-white.svg

This file was deleted.

0 comments on commit 31b398c

Please sign in to comment.