Skip to content

Commit

Permalink
fix: removed old open attribute and added targetBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Aug 10, 2022
1 parent f876842 commit d90d983
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/_components/activities/ActivityDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
{#each speakers as s}
<div class="flex flex-col items-center md:flex-row">
<div class="flex-shrink-0">
<a href="/members/{s.profileSlug}/" open>
<a href="/members/{s.profileSlug}/">
<span class="relative inline-block">
<img
class="lazyload h-24 w-24 rounded-full"
Expand Down Expand Up @@ -479,7 +479,7 @@
<Icon data={externalLink} class="h-4 w-4" />
</div>
<div class="flex-grow rounded-md p-2">
<a open rel="external" href={sa.url}>
<a target="_blank" rel="external" href={sa.url}>
<p>{sa.name}</p>
<p class="mt-1 text-sm text-gray-400">{sa.description}</p>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/_components/activities/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
</div>
{/if}
<div class="flex w-full flex-col items-center p-3">
<a sveltekit:prefetch open href="/members/{host.profileSlug}/" class="flex-shrink-0">
<a sveltekit:prefetch href="/members/{host.profileSlug}/" class="flex-shrink-0">
<span class="relative inline-block">
<img
class="lazyload h-24 w-24 rounded-full"
Expand Down
2 changes: 0 additions & 2 deletions src/_components/activities/KeynoteCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
{#if location === 'THAT'}
<div class="m-3 inline-flex rounded-md shadow-md">
<a
open
href={`/join/${id}`}
class="focus:ring-red relative inline-flex w-32
items-center justify-center rounded-md border border-gray-300 bg-white
Expand All @@ -85,7 +84,6 @@
{:else}
<div class="m-3 inline-flex rounded-md shadow-md">
<a
open
href="https://youtube.com/c/thatconference"
class="focus:ring-red relative inline-flex w-32
items-center justify-center rounded-md border border-gray-300 bg-white
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<a
sveltekit:prefetch
{href}
open
class="w-full rounded-md px-3 py-2 text-gray-600
transition duration-150 ease-in-out
hover:bg-that-blue hover:text-white
Expand Down
2 changes: 0 additions & 2 deletions src/_components/nav/interiorNav/Large.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<a
sveltekit:prefetch
href="/events/"
open
class="ml-1 rounded-md px-3 py-2 text-sm font-medium text-gray-300
hover:bg-that-blue hover:text-white focus:bg-that-blue
focus:text-white focus:outline-none">
Expand All @@ -45,7 +44,6 @@

<a
sveltekit:prefetch
open
href="/activities/"
class="ml-1 rounded-md px-3 py-2 text-sm font-medium text-gray-300
hover:bg-that-blue hover:text-white focus:bg-that-blue
Expand Down
2 changes: 1 addition & 1 deletion src/_components/social/SocialLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
</script>

<a {href} aria-label={ariaLabel} target="_blank" rel="noopener">
<a {href} aria-label={ariaLabel} target="_blank">
<Icon
data={socialIcon}
class={`transform cursor-pointer transition duration-500 ease-in-out hover:scale-125 ${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<li class="pt-4">
<div class="flex items-center space-x-4">
<div class="flex-grow rounded-md p-2" class:bg-gray-50={showBackground(i)}>
<a open href={item.url}>
<a target="_blank" href={item.url}>
<p>{item.name}</p>
<p class="mt-1 text-sm text-gray-400">{item.description}</p>
</a>
Expand Down
5 changes: 0 additions & 5 deletions src/routes/my/profiles/_components/profileForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,6 @@
<div class="ml-3 text-sm leading-5">
<label for="comments" class="font-medium text-gray-700">
<a
open
tabindex="-1"
href="/support/code-of-conduct/"
class="font-medium text-indigo-600 transition
Expand Down Expand Up @@ -708,7 +707,6 @@
<div class="ml-3 text-sm leading-5">
<label for="comments" class="font-medium text-gray-700">
<a
open
tabindex="-1"
href="/suppoprt/anti-harassment/"
class="font-medium text-indigo-600 transition
Expand Down Expand Up @@ -738,7 +736,6 @@
<div class="ml-3 text-sm leading-5">
<label for="comments" class="font-medium text-gray-700">
<a
open
tabindex="-1"
href="/support/commitment-to-diversity/"
class="font-medium text-indigo-600
Expand Down Expand Up @@ -772,7 +769,6 @@
<div class="ml-3 text-sm leading-5">
<label for="candidates" class="font-medium text-gray-700">
<a
open
tabindex="-1"
href="/support/terms-of-use/"
class="font-medium text-indigo-600
Expand Down Expand Up @@ -846,7 +842,6 @@
<label for="comments" class="font-medium text-gray-700">
<a
tabindex="-1"
open
href="/support/code-of-conduct/"
class="font-medium text-indigo-600 transition
duration-150 ease-in-out hover:text-indigo-500">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/partners/_components/_EventPartnerLevel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{#each partners as p, i (p.id)}
<li
class="col-span-1 flex transform flex-col rounded-lg bg-white text-center shadow transition duration-500 ease-in-out hover:scale-105 hover:bg-that-offWhite">
<a open href={`/partners/${p.slug}`}>
<a href={`/partners/${p.slug}`}>
<PartnerCard {...p} />
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/partners/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{#each partners as p, i (p.id)}
<li
class="col-span-1 flex transform flex-col rounded-lg bg-white text-center shadow transition duration-500 ease-in-out hover:scale-105 hover:bg-that-offWhite">
<a open href={`/partners/${p.slug}`}>
<a href={`/partners/${p.slug}`}>
<PartnerCard {...p} />
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/partners/past/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{#each partners as p, i (p.id)}
<li
class="col-span-1 flex transform flex-col rounded-lg bg-white text-center shadow transition duration-500 ease-in-out hover:scale-105 hover:bg-that-offWhite">
<a open href={`/partners/${p.slug}`}>
<a href={`/partners/${p.slug}`}>
<PartnerCard {...p} />
</a>
</li>
Expand Down

0 comments on commit d90d983

Please sign in to comment.