Skip to content

Commit 21a3529

Browse files
fix(Overlay): reset maxheight and maxwidth values when on fullscreen (#6036)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b148d1a commit 21a3529

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/chilly-candles-flash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
fix(Overlay): reset maxheight and maxwidth values when on fullscreen

packages/react/src/AnchoredOverlay/__snapshots__/AnchoredOverlay.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`AnchoredOverlay > should render consistently when open 1`] = `
4343
style="position: relative; z-index: 1;"
4444
>
4545
<div
46-
class="_Overlay_3qzyn_11"
46+
class="_Overlay_1a2ug_11"
4747
data-focus-trap="active"
4848
data-height-auto=""
4949
data-variant="anchored"

packages/react/src/Overlay/Overlay.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@
163163
top: 0;
164164
left: 0;
165165
width: 100vw;
166+
max-width: none;
166167
height: 100vh;
168+
max-height: none;
167169
margin: 0;
168170
border-radius: unset;
169171
}

0 commit comments

Comments
 (0)