diff --git a/src/lib/components/atoms/Modal.svelte b/src/lib/components/atoms/Modal.svelte new file mode 100644 index 0000000..a7e3bf0 --- /dev/null +++ b/src/lib/components/atoms/Modal.svelte @@ -0,0 +1,57 @@ + + +{#if isOpen} +
+
e.stopPropagation()} + > +
+

{title}

+ +
+
{@render children()}
+ {#if footer} +
+ {@render footer()} +
+ {/if} +
+
+{/if} diff --git a/svelte.config.js b/svelte.config.js index 1295460..70313be 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -12,6 +12,16 @@ const config = { // If your environment is not supported, or you settled on a specific environment, switch out the adapter. // See https://svelte.dev/docs/kit/adapters for more information about adapters. adapter: adapter() + }, + + compilerOptions: { + warningFilter: (warning) => { + const ignoreCodes = [ + 'a11y_no_static_element_interactions', + 'a11y_click_events_have_key_events' + ]; + return !ignoreCodes.includes(warning.code); + } } };