Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/light-beds-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Overlay: Fix position for fullscreen overlay on narrow screens
1 change: 1 addition & 0 deletions packages/react/src/Overlay/Overlay.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
}

&:where([data-variant='fullscreen']) {
position: fixed;
top: 0;
left: 0;
width: 100vw;
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const StyledOverlay = toggleStyledComponent(
}

&:where([data-variant='fullscreen']) {
position: fixed;
top: 0;
left: 0;
width: 100vw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports[`AnchoredOverlay should render consistently when open 1`] = `
}

.c1:where([data-variant='fullscreen']) {
position: fixed;
top: 0;
left: 0;
width: 100vw;
Expand Down
Loading