Skip to content

Commit f989d2e

Browse files
authored
fix: button titles not updating when title or aria-label changes (#179)
Fix button titles not updating when aria-label or title changes
1 parent 6c29ad9 commit f989d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/IconButton/IconButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
...buttonProps
1313
}: IconButtonProps = $props();
1414
15-
const buttonTitle = title || ariaLabel;
15+
const buttonTitle = $derived(title || ariaLabel);
1616
</script>
1717

1818
<Button icon {...buttonProps} title={buttonTitle} aria-label={ariaLabel}>

0 commit comments

Comments
 (0)