diff --git a/ts/lib/components/TitledContainer.svelte b/ts/lib/components/TitledContainer.svelte index 98983940a..3ea932ba3 100644 --- a/ts/lib/components/TitledContainer.svelte +++ b/ts/lib/components/TitledContainer.svelte @@ -12,7 +12,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export { className as class }; export let title: string; - export let onHelpClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null;
{title} - {#if onHelpClick} -
- -
- {/if} +
+ +
diff --git a/ts/routes/graphs/Graph.svelte b/ts/routes/graphs/Graph.svelte index 1dafed4bb..c8da588c5 100644 --- a/ts/routes/graphs/Graph.svelte +++ b/ts/routes/graphs/Graph.svelte @@ -8,7 +8,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html // When title is null (default), the graph is inlined, not having TitledContainer wrapper. export let title: string | null = null; export let subtitle: string | null = null; - export let onHelpClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null; {#if title == null} @@ -19,8 +18,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {:else} - - + +
{#if subtitle}
{subtitle}
diff --git a/ts/routes/graphs/TrueRetention.svelte b/ts/routes/graphs/TrueRetention.svelte index 9af2b4d85..719f5a4ed 100644 --- a/ts/routes/graphs/TrueRetention.svelte +++ b/ts/routes/graphs/TrueRetention.svelte @@ -62,17 +62,24 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html }; - - +
{ - modal = e.detail.modal; - carousel = e.detail.carousel; - }} - /> + onclick={onHelpClick} + onkeydown={onHelpClick} + role="button" + tabindex="0" + > + { + modal = e.detail.modal; + carousel = e.detail.carousel; + }} + /> +