From 85a07207a0fe4199e0c30dff9b78e5fba966b420 Mon Sep 17 00:00:00 2001 From: Ellen Date: Wed, 28 Aug 2024 10:24:41 +0200 Subject: [PATCH 1/2] feat: update markup and documentation for breadcrumbs --- README.md | 3 +++ .../__snapshots__/breadcrumbs.test.js.snap | 16 ++++++++-------- lib/handlebars/helpers/breadcrumbs.js | 8 ++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3ba2ee1..403cb51 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ registerBreadcrumbHelper() // Add breadcrumbs to res.render res.render(breadcrumbsPath: [{url: 'https://kth.se', label: 'KTH'}, ...], ...) + +// Import the needed css from @kth/style +@use '@kth/style/scss/components/breadcrumbs.scss'; ``` ## Language Link Helper diff --git a/lib/handlebars/helpers/__snapshots__/breadcrumbs.test.js.snap b/lib/handlebars/helpers/__snapshots__/breadcrumbs.test.js.snap index 0e27852..c637d11 100644 --- a/lib/handlebars/helpers/__snapshots__/breadcrumbs.test.js.snap +++ b/lib/handlebars/helpers/__snapshots__/breadcrumbs.test.js.snap @@ -2,20 +2,20 @@ exports[`getBreadcrumbsMarkup should generate breadcrumbs HTML for a valid path list in English 1`] = ` " -