Skip to content

Commit

Permalink
Default remove ariaLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
MengLinMaker committed Jan 14, 2024
1 parent d0fcff3 commit d82b57e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/static/components/section/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Container from '../wrapper/container.astro'
const creatorLink = {
link: 'https://github.com/MengLinMaker',
text: 'Created by MengLinMaker',
ariaLabel: `MengLinMaker's GitHub profile`,
}
const socialIcon = [
Expand All @@ -30,7 +29,6 @@ const socialIcon = [
>
<A
href={creatorLink.link}
ariaLabel={creatorLink.ariaLabel}
class="w-72 underline hidden text-left md:block hover:brightness-75"
>
{creatorLink.text}
Expand All @@ -47,7 +45,6 @@ const socialIcon = [
<p class="w-72 md:text-right">Copyright © 2023</p>
<A
href={creatorLink.link}
ariaLabel={creatorLink.ariaLabel}
class="w-72 underline md:hidden hover:brightness-75"
>
{creatorLink.text}
Expand Down
7 changes: 7 additions & 0 deletions frontend/static/components/ui/A.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
const { class: className = '', ariaLabel = '', href } = Astro.props
---

<a href={href} aria-label={ariaLabel} class={className} target="_blank" rel="noopener">
<slot />
</a>

0 comments on commit d82b57e

Please sign in to comment.