Skip to content

Commit

Permalink
Modal: Don't add scroll shadow when polyfilled (#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan authored Nov 26, 2024
1 parent 9f088a9 commit 34538a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-bottles-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-css": patch
---

Modal: Don't add scroll shadow when polyfilled
3 changes: 3 additions & 0 deletions @navikt/core/css/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
overflow: auto;
overscroll-behavior: contain;
position: relative; /* Needed to make sr-only elements position correctly - see Storybook */
}

.navds-modal:not(.navds-modal--polyfilled) .navds-modal__body {
background:
linear-gradient(var(--__ac-modal-bg) 30%, transparent) top,
linear-gradient(transparent, var(--__ac-modal-bg) 60%) bottom,
Expand Down

0 comments on commit 34538a1

Please sign in to comment.