Skip to content

Commit

Permalink
make size configurable,defaults to
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Mar 8, 2022
1 parent 9f413ff commit 02cf14f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/Breadcrumbs/Breadcrumbs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Breadcrumb, Container, Image, Segment } from 'semantic-ui-react';

import homeIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/home-icon.svg';

const Breadcrumbs = ({ root, sections = [], icon }) => {
const Breadcrumbs = ({ root, sections = [], icon, size = 'tiny' }) => {
return (
<Segment
role="navigation"
Expand All @@ -19,7 +19,7 @@ const Breadcrumbs = ({ root, sections = [], icon }) => {
attached
>
<Container>
<Breadcrumb>
<Breadcrumb size={size}>
<Link to={root || '/'} className="section" title={'Home'}>
<Image src={homeIcon} alt="home" />
</Link>
Expand Down Expand Up @@ -51,6 +51,7 @@ Breadcrumbs.propTypes = {
key: PropTypes.string,
}),
).isRequired,
size: PropTypes.string,
};

export const BreadcrumbsComponent = Breadcrumbs;
Expand Down

0 comments on commit 02cf14f

Please sign in to comment.