Skip to content

Commit

Permalink
Resolve A11y errors for AppRailAnchor (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 authored Jun 7, 2024
1 parent 95567ea commit 7e8add8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-keys-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---

bugfix: Removed invalid role and forward events on AppRailAnchor component
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,7 @@
}
</script>

<a
class="app-rail-anchor {classesBase}"
href={$$props.href}
{...prunedRestProps()}
role="button"
on:click
on:keydown
on:keyup
on:keypress
on:mouseover
on:mouseleave
on:focus
on:blur
data-testid="app-rail-anchor"
>
<a class="app-rail-anchor {classesBase}" href={$$props.href} {...prunedRestProps()} data-testid="app-rail-anchor">
<div class="app-rail-wrapper {classesWrapper}">
{#if $$slots.lead}<div class="app-rail-lead {classesLead}"><slot name="lead" /></div>{/if}
<div class="app-rail-label {classesLabel}"><slot /></div>
Expand Down

0 comments on commit 7e8add8

Please sign in to comment.