Skip to content

Commit

Permalink
Merge pull request #67 from roybarber/patch-1
Browse files Browse the repository at this point in the history
Correct Aria / Markup for a current page in Breadcrumb Item
  • Loading branch information
markteekman committed Dec 10, 2023
2 parents c7fa495 + 6f19b36 commit 077f5ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BreadcrumbsItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { href = '#', label = 'Breadcrumb', currentPage = false } = Astro.props
---

<li class="breadcrumbs__item">
{currentPage ? <span>{label}</span> : <a href={href}>{label}</a>}
{currentPage ? <span aria-current="page">{label}</span> : <a href={href}>{label}</a>}
</li>

<style is:global>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 077f5ac

Please sign in to comment.