File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/components " : patch
3
+ ---
4
+
5
+ data props can be used in overlayProps.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export type OverlayProps = {
65
65
onClickOutside : ( e : TouchOrMouseEvent ) => void
66
66
onEscape : ( e : KeyboardEvent ) => void
67
67
visibility ?: 'visible' | 'hidden'
68
+ [ additionalKey : string ] : unknown
68
69
} & Omit < ComponentProps < typeof StyledOverlay > , 'visibility' | keyof SystemPositionProps >
69
70
70
71
/**
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export function SimpleListStory(): JSX.Element {
97
97
onAction = { onAction }
98
98
anchorContent = "Menu"
99
99
overlayProps = { {
100
+ 'data-test-id' : 'some_test_id' ,
100
101
onMouseDown : ( e : React . MouseEvent ) =>
101
102
// eslint-disable-next-line no-console
102
103
console . log ( 'onMouseDown in the internal Overlay can be useful for controlling event interactions' , e )
You can’t perform that action at this time.
0 commit comments