Skip to content

Commit

Permalink
fix: anchor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadHarith committed Nov 3, 2021
1 parent 8e2c902 commit 11d984f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 46 deletions.
30 changes: 17 additions & 13 deletions components/app-bar/components/Drawer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
<nav bind:this={drawer} class="resp__app-bar__drawer">
<!-- header -->
<div class="resp__app-bar__drawer__header">
<Icon type="x" style="width:15px; height:15px;" on:click={onClose} />
<Icon
type="x"
stroke="#fc4451"
style="width:15px; height:15px;"
on:click={onClose}
/>
</div>
<div class="resp__app-bar__drawer__container">
<!-- user -->
Expand All @@ -44,16 +49,16 @@
</div>
<ul>
{#each items as item}
<li>
<a href={item.link}>
<a href={item.link}>
<li>
<Icon
type={item.icon}
stroke="#fc4451"
style="margin-right:15px; width:40px; height:40px;"
style="margin-right:5px; width:40px; height:40px;"
/>
{item.value}
</a>
</li>
</li>
</a>
{/each}
</ul>
</div>
Expand Down Expand Up @@ -91,13 +96,12 @@
}
ul {
li {
list-style: none;
border-bottom: 1px #f0f0f0 dashed;
a {
text-decoration: none;
color: #1a1b1c;
a {
text-decoration: none;
color: #1a1b1c;
li {
list-style: none;
border-bottom: 1px #f0f0f0 dashed;
}
}
}
Expand Down
36 changes: 15 additions & 21 deletions components/app-bar/components/Dropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
</div>
<ul>
{#each items as item}
<li>
<a href={item.link}>
<a href={item.link}>
<li>
<Icon
stroke="#fc4451"
style="width:40px; height:40px"
style="margin-right:5px; width:40px; height:40px"
type={`${item.icon || ""}`}
/>
<span>
{item.value}
</span>
</a>
</li>
</li>
</a>
{/each}
</ul>
</div>
Expand All @@ -38,6 +38,7 @@
}
.resp__app-bar__dropdown {
padding: 15px;
position: absolute;
z-index: 101;
right: 0;
Expand All @@ -48,8 +49,9 @@
min-width: 200px;
.resp__app-bar__user {
padding: 15px;
cursor: default;
padding-bottom: 10px;
border-bottom: #fc4451 1px dashed;
.text {
color: #444444;
font-size: 0.813rem;
Expand All @@ -70,23 +72,15 @@
margin: 0;
padding: 0;
li {
a {
display: flex;
align-items: center;
white-space: nowrap;
padding: 5px 15px 5px 5px;
text-decoration: none;
font-size: 0.813rem;
color: #444444;
}
a:hover {
background-color: #f0f0f0;
a {
text-decoration: none;
color: #1a1b1c;
font-size: 0.813rem;
white-space: nowrap;
li {
padding: 2.5px 0;
}
}
li:nth-child(1) {
border-top: 1px #fc4451 dashed;
}
}
}
</style>
8 changes: 2 additions & 6 deletions components/app-bar/components/Tab.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<script lang="ts">
import { createEventDispatcher, onMount } from "svelte";
type TabItem = {
title: string;
value: string;
};
import type { NavItem } from "../types";
const dispatch = createEventDispatcher();
export let items: TabItem[];
export let items: NavItem[];
export let selected = 0;
let tab: HTMLDivElement;
Expand Down
8 changes: 2 additions & 6 deletions components/app-bar/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
export type NavItem = {
value: string;
title?: string;
icon?: string;
link: string;
};

export type TabItem = {
title: string;
value: string;
link: string;
};

0 comments on commit 11d984f

Please sign in to comment.