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 asudoh committed Jan 21, 2020
1 parent aaba9c8 commit e4d0723
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 e4d0723

Please sign in to comment.