Skip to content

Commit

Permalink
fix: the a11y issues in group component
Browse files Browse the repository at this point in the history
  • Loading branch information
devhammed committed Aug 23, 2021
1 parent 4dd0368 commit 2f09925
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/groups/Group.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,34 @@
</script>

{#if !root}
<a href="javascript:;" class="sidebar-list-link name" class:expanded on:click={toggle}>
<span>{name}</span>
</a>
<span class="sidebar-list-link name" class:expanded on:click={toggle}>
<span>{name}</span>
</span>
{/if}

{#if expanded}
<ul>
{#each children as child}
<li class="folder"><svelte:self {...child}></svelte:self></li>
<li class="folder"><svelte:self {...child} /></li>
{/each}
{#each requests as request}
<li class="request"><Request {request} /></li>
<li class="request"><Request {request} /></li>
{/each}
</ul>
{/if}

<style>
.sidebar-list-link {
cursor: pointer;
}
.sidebar-list-link::before {
font-family: FontAwesome;
content: "\f07b";
content: '\f07b';
}
.sidebar-list-link.expanded::before {
content: "\f07c";
content: '\f07c';
}
ul {
Expand Down

0 comments on commit 2f09925

Please sign in to comment.