Skip to content

Commit

Permalink
Hide overflow from Overlay (#1248)
Browse files Browse the repository at this point in the history
This partially reverts commit 681bbe6
  • Loading branch information
dgreif authored May 25, 2021
1 parent aa7d80f commit a7fe32c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-cooks-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/components": patch
---

Hide overflow from `Overlay`
1 change: 1 addition & 0 deletions src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const StyledOverlay = styled.div<StyledOverlayProps & SystemCommonProps & System
height: ${props => heightMap[props.height || 'auto']};
width: ${props => widthMap[props.width || 'auto']};
border-radius: 12px;
overflow: hidden;
animation: overlay-appear 200ms ${get('animation.easeOutCubic')};
@keyframes overlay-appear {
Expand Down
4 changes: 1 addition & 3 deletions src/stories/ActionList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export default meta
const ErsatzOverlay = styled.div`
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(149, 157, 165, 0.2);
position: absolute;
min-width: 192px;
max-width: 640px;
overflow: hidden;
`

export function ActionsStory(): JSX.Element {
Expand Down

1 comment on commit a7fe32c

@vercel
Copy link

@vercel vercel bot commented on a7fe32c May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.