From 9cbe7e8ec1760c5529c7c3031bfef70151835312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=B8egh?= Date: Tue, 17 Dec 2024 20:42:12 +0100 Subject: [PATCH] chore(Drawer): use `none` instead of `auto` for min and max width (#4412) I don't think this has any effect, as `auto` was a non-valid value. Here are the [docs](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width). --- .../drawer/__tests__/__snapshots__/Drawer.test.tsx.snap | 4 ++-- .../dnb-eufemia/src/components/drawer/style/dnb-drawer.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap b/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap index c74fc3f8533..9dafe50958f 100644 --- a/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap @@ -1014,8 +1014,8 @@ html[data-visual-test] .dnb-modal__overlay, .dnb-modal__overlay--no-animation { @media screen and (max-width: 40em) { .dnb-drawer { width: 100vw; - min-width: auto; - max-width: auto; + min-width: none; + max-width: none; } } @media screen and (max-width: 40em) { diff --git a/packages/dnb-eufemia/src/components/drawer/style/dnb-drawer.scss b/packages/dnb-eufemia/src/components/drawer/style/dnb-drawer.scss index 5b9a9bb537a..9f6aaed80e8 100644 --- a/packages/dnb-eufemia/src/components/drawer/style/dnb-drawer.scss +++ b/packages/dnb-eufemia/src/components/drawer/style/dnb-drawer.scss @@ -39,8 +39,8 @@ @include allBelow(small) { width: 100vw; - min-width: auto; - max-width: auto; + min-width: none; + max-width: none; } @include defaultDropShadow();