Skip to content

Commit 49fa2c8

Browse files
Fix(Dialog): set height limit of 35% to DialogHeader (#5996)
Co-authored-by: Copilot <[email protected]>
1 parent dbeca84 commit 49fa2c8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/tame-pumpkins-jump.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(Dialog): set height limit of 35% to DialogHeader

packages/react/src/Dialog/Dialog.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@
214214

215215
.Header {
216216
z-index: 1;
217+
max-height: 35vh;
217218
padding: var(--base-size-8);
219+
overflow-y: auto;
218220
/* stylelint-disable-next-line primer/box-shadow */
219221
box-shadow: 0 1px 0 var(--borderColor-default);
220222
flex-shrink: 0;

0 commit comments

Comments
 (0)