Skip to content

Commit

Permalink
fix(breadcrumbs): make ariaLabel prop optional and align with type de…
Browse files Browse the repository at this point in the history
…finitions
  • Loading branch information
markteekman committed Feb 16, 2025
1 parent bac53c7 commit 038e6c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Breadcrumbs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ interface Props {
children: BreadcrumbsItem | BreadcrumbsItem[]
/**
* Accessible label for the breadcrumb navigation
* @default 'Breadcrumbs'
*/
ariaLabel: string
ariaLabel?: string
}
const { class: classNames, ariaLabel = 'Breadcrumbs' } = Astro.props
---

<nav class:list={['breadcrumbs', classNames]} aria-label={ariaLabel}>
<ol>
<ol class="list">
<slot />
</ol>
</nav>
Expand Down

0 comments on commit 038e6c9

Please # to comment.