Files
lucide/packages/svelte/tests/TestSlotsTitle.svelte
T
Eric FennisandKarsa 8cd4f293f2 fix(packages): only remove aria-hidden when an accessibility prop is set (#5347)
* Adjust accessibility behaviour for title elements

* Adjust angular package as well

* Fix types

* fix(packages/angular): use fixture.whenStable instead of triggering change detection manually

detectChanges() explicitly forces a check, so it can mask missing automatic change detection

* test(packages/angular): add test for non-signal bound aria attribute

* fix(angular): preserve explicit aria-hidden and support input bindings

---------

Co-authored-by: Karsa <contact@karsa.org>
2026-12-01 12:56:09 +01:00

11 lines
325 B
Svelte

<script lang="ts">
import FaceSlightlySmiling from '../src/icons/face-slightly-smiling.svelte';
import type { LucideProps } from '../src/types.js';
const props: LucideProps = $props();
</script>
<FaceSlightlySmiling {...props}>
<title id="warn-title">Warning: Action cannot be undone</title>
</FaceSlightlySmiling>