mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-28 13:21:02 +00:00
fix: Navigation Bar Accessibility (#196)
* added aria labels to the Navbar * wrapped <li> element in <ul> * Update src/layout/Navbar/NavHost.svelte Co-authored-by: Ushie <ushiekane@gmail.com> * update: wrap <li> element in <ul> --------- Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de> Co-authored-by: João André Marques <joaoandremarques@MacBook-Pro.local> Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:
@@ -3,18 +3,19 @@
|
||||
export let icon = '';
|
||||
export let href = '';
|
||||
export let target = '';
|
||||
export let label = '';
|
||||
</script>
|
||||
|
||||
<button on:click>
|
||||
{#if href}
|
||||
<a {href} {target} {...$$restProps} class={`button-${type}`}>
|
||||
<a {href} {target} {...$$restProps} class={`button-${type}`} aria-label={label}>
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
{/if}
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<div {...$$restProps} class={`button-${type}`}>
|
||||
<div {...$$restProps} class={`button-${type}`} aria-label={label}>
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user