Skip to content

Commit

Permalink
fix(breadcrumbs): add spread attribute to root node (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns authored and joshblack committed Jan 23, 2020
1 parent f04f03b commit cb2a1ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/Breadcrumb/Breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Breadcrumb = ({
children,
className: customClassNameNav,
noTrailingSlash,
...rest
}) => {
const className = cx({
[`${prefix}--breadcrumb`]: true,
Expand All @@ -26,7 +27,8 @@ const Breadcrumb = ({
return (
<nav
className={customClassNameNav}
aria-label={ariaLabel ? ariaLabel : 'Breadcrumb'}>
aria-label={ariaLabel ? ariaLabel : 'Breadcrumb'}
{...rest}>
<ol className={className}>{children}</ol>
</nav>
);
Expand Down

0 comments on commit cb2a1ec

Please sign in to comment.