From 147b8642f3b101640f79c841293b6a5b1a297d77 Mon Sep 17 00:00:00 2001 From: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com> Date: Wed, 7 Dec 2022 16:56:31 +0100 Subject: [PATCH] fix(sidebar): inherit width for fixed sidebar (#858) Fixed an issue with the sidebar width. The fixed sidebar no longer spans the whole page and no longer hides the main page content beneath. --- .changeset/wise-news-raise.md | 6 ++++++ .../styles/src/components/intranet-header/_sidebar.scss | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/wise-news-raise.md diff --git a/.changeset/wise-news-raise.md b/.changeset/wise-news-raise.md new file mode 100644 index 0000000000..bce9f92c8d --- /dev/null +++ b/.changeset/wise-news-raise.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-styles': patch +'@swisspost/design-system-intranet-header': patch +--- + +Fixed an issue with the sidebar width. The fixed sidebar no longer spans the whole page and no longer hides the main page content beneath. diff --git a/packages/styles/src/components/intranet-header/_sidebar.scss b/packages/styles/src/components/intranet-header/_sidebar.scss index b168548ac7..db7b734996 100644 --- a/packages/styles/src/components/intranet-header/_sidebar.scss +++ b/packages/styles/src/components/intranet-header/_sidebar.scss @@ -73,7 +73,7 @@ top: auto; top: 0; bottom: 0; - width: 100%; + width: inherit; max-width: inherit; margin-left: spacing.$spacer * -1; padding: spacing.$spacer 0;