Skip to content

Commit

Permalink
Merge pull request #3050 from statisticsnorway/MIM-2040-breadcrumb-up…
Browse files Browse the repository at this point in the history
…date

[MIM-2040] Update breadcrumb component mobileCompressedView
  • Loading branch information
Carl-OW authored Nov 28, 2024
2 parents 42b8de5 + 35d0d6d commit 652dc89
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@item-enonic-types/lib-thymeleaf": "~2.1.0",
"@item-enonic-types/lib-time": "~1.0.4",
"@reduxjs/toolkit": "~2.3.0",
"@statisticsnorway/ssb-component-library": "~2.4.2",
"@statisticsnorway/ssb-component-library": "~2.4.3",
"@types/grecaptcha": "^3.0.9",
"@types/ramda": "~0.30.2",
"@types/react": "~18.3.12",
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/react4xp/_entries/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { Breadcrumb } from '@statisticsnorway/ssb-component-library'
export default (props) => {
return (
<nav className='row mt-2' aria-label='secondary'>
<div className='col-12'>{props && <Breadcrumb {...props} mobileCompressedView />}</div>
<div className='d-md-none'>
<Breadcrumb {...props} mobileCompressedView />
</div>
<div className='d-none d-md-block'>
<Breadcrumb {...props} />
</div>
</nav>
)
}

0 comments on commit 652dc89

Please sign in to comment.