From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/scraper/components/SelectorGroup.svelte | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'frontend/src/lib/scraper/components/SelectorGroup.svelte')

diff --git a/frontend/src/lib/scraper/components/SelectorGroup.svelte b/frontend/src/lib/scraper/components/SelectorGroup.svelte
index 1fdb8f2..11489b1 100644
--- a/frontend/src/lib/scraper/components/SelectorGroup.svelte
+++ b/frontend/src/lib/scraper/components/SelectorGroup.svelte
@@ -1,9 +1,13 @@
 <script lang="ts">
-	import { Selector } from '$lib/Scraper';
+	import { Selector } from '../Scraper.svelte';
 	import SelectorButton from './SelectorButton.svelte';
 
-	export let title: string;
-	export let selectors: Selector<string>[];
+	interface Props {
+		title: string;
+		selectors: Selector<string>[];
+	}
+
+	let { title, selectors = $bindable() }: Props = $props();
 
 	function invert() {
 		for (let selector of selectors) {
@@ -20,8 +24,9 @@
 			<button
 				type="button"
 				class="flex items-end opacity-75 brightness-75 transition-opacity hover:opacity-100 hover:brightness-110 focus-visible:opacity-100"
-				on:click={invert}
+				onclick={invert}
 				title="Invert selection"
+				aria-label="Invert selection"
 			>
 				<span class="icon-xs icon-[material-symbols--compare-arrows]"></span>
 			</button>
-- 
cgit v1.2.3-2-gb3c3

