Skip to content
Draft
Changes from 6 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
4 changes: 2 additions & 2 deletions packages/@react-spectrum/s2/src/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ let popover = style(
isolation: 'isolate',
pointerEvents: {
isExiting: 'none'
}
},
overflow: 'auto'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

right soooo the only issue with overflow: auto is now it clips the arrow...

it would be nice to go this route though bc browsers will focus the scrollable container and then users can keyboard up/down so not much code (but then no arrow)

we might have to shift focus to the inner div instead to preserve the popover's arrow but not sure how that would play around with submenu's for example

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

allow me to cook for a bit...

},
getAllowedOverrides()
);
Expand Down Expand Up @@ -322,7 +323,6 @@ const innerDivStyle = style(
boxSizing: 'border-box',
outlineStyle: 'none',
borderRadius: 'inherit',
overflow: 'auto',
position: 'relative',
width: 'full',
maxSize: 'inherit'
Expand Down