-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use push flyout for Discover document flyout #166406
Changes from 7 commits
cadd8d8
23dc630
58cc26e
b164831
cea1288
deaa9ee
70d7127
083921c
54d24b6
a9072e4
b583a9d
ab29999
8e70fb3
0b97736
3b4cb11
28483cd
5e9b816
e8028d9
2d2eb32
ddf3694
dfebc40
9942d54
6ca57ec
a83c461
46d4424
8c1bdec
865fed9
785c75f
a5d409a
8b3d9f8
1de9a94
da63a18
f488e70
816fafc
0156206
8ab3fd7
b268e75
88c7b05
ec72196
e1f6667
8e362f3
42d6612
4e995f7
8cfa359
40be3e2
8866baf
f86a39d
9abcf27
8d69a43
6f462be
f48a840
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,14 @@ import { | |
EuiFlexItem, | ||
EuiFlyout, | ||
EuiFlyoutBody, | ||
EuiFlyoutFooter, | ||
EuiFlyoutHeader, | ||
EuiTitle, | ||
EuiSpacer, | ||
EuiPortal, | ||
EuiPagination, | ||
keys, | ||
EuiButtonEmpty, | ||
} from '@elastic/eui'; | ||
import type { Filter, Query, AggregateQuery } from '@kbn/es-query'; | ||
import type { DataTableRecord } from '@kbn/discover-utils/types'; | ||
|
@@ -113,7 +115,9 @@ export function DiscoverGridFlyout({ | |
<EuiPortal> | ||
<EuiFlyout | ||
onClose={onClose} | ||
type="push" | ||
size="m" | ||
pushMinBreakpoint="xl" | ||
data-test-subj="docTableDetailsFlyout" | ||
onKeyDown={onKeyDown} | ||
ownFocus={false} | ||
|
@@ -183,6 +187,15 @@ export function DiscoverGridFlyout({ | |
textBasedHits={isPlainRecord ? hits : undefined} | ||
/> | ||
</EuiFlyoutBody> | ||
<EuiFlyoutFooter> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the EUI docs (https://elastic.github.io/eui/#/layout/flyout#push-versus-overlay):
|
||
<EuiFlexGroup> | ||
<EuiFlexItem grow={false}> | ||
<EuiButtonEmpty iconType="cross" onClick={onClose} flush="left"> | ||
Close | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this make sense, one ask, pls add i18n for |
||
</EuiButtonEmpty> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiFlyoutFooter> | ||
</EuiFlyout> | ||
</EuiPortal> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
ownFocus
should be true now, this would not apply for the push, but for the overlay style