-
Notifications
You must be signed in to change notification settings - Fork 840
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
Expand EuiFlyout usage to help EuiCollapsibleNav #4713
Merged
Merged
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
42664ce
Fix when animation happens with docked navs
3170831
WIP _ Terrible
d492775
Conditionally render children of EuiCollapsibleNavGroup
41db315
Fixing click capture on toggle button
44207ea
[BREAKING] Width of EuiCollapsibleNav is now add via `style` prop ins…
8b04e68
Add playground
1ea7c37
[EuiFlyout] Extending `size` prop to accept width types
f3a9db0
[EuiFlyout] Added `side` prop
2e4068b
[EuiFlyout] added `type=push`, `pushBreakpoint` and `outsideClickClos…
3076cc1
[EuiFlyout] Added `as` prop
3cfbcdc
[BREAKING] Update EuiCollapsibleNav to use EuiFlyout
e8a4232
Added `closeButton` and `closeButtonPosition` to EuiFlyout and using …
a55d9c6
Fixing up EuiCallapsibleNav with docking of EuiFlyout
c800e26
Finalizing (?) the components
294c3aa
Updating docs
95fa072
[Breaking] EuiFlyout defaults to `ownFocus = true`
5a5f33c
Cleanup
680a3bb
[EuiFlyout] Wrapping in EuiPortal when `ownFocus=true`
1833e6c
forwardRef
thompsongl 5022e0d
collapsible type
thompsongl 6440aa4
Merge remote-tracking branch 'cchaos/update/collapsible-nav' into upd…
thompsongl c6c5883
Merge pull request #49 from thompsongl/update/collapsible-nav
cchaos 9393dbe
Add `onTouchEnd` for mobile support
24d031d
Fixing z-indexes of flyouts compared to header
6ec3eae
Merge remote-tracking branch 'upstream/master' into update/collapsibl…
511720c
Restricting elements to div, span and sectioning elements
26ae7e5
A couple more z-index fixes (popovers in header over flyout)
2326d36
Fix for doc
6e588e6
Fixing visible focus ring on overflowing content like in flyouts
3084410
Merge remote-tracking branch 'upstream/master' into update/collapsibl…
53d9c3e
cl
feff170
Merge branch 'master' into update/collapsible-nav
cchaos 21791b9
Removing `ownFocus` from push example
fe1edb3
Changing EuiFlyout `tabindex=0` to `-1`
ea7b30b
Merge remote-tracking branch 'upstream/master' into update/collapsibl…
daeaa4c
Update a11y callout
cchaos b2ac007
Merge branch 'master' into update/collapsible-nav
cchaos 3364337
accomodate -> accommodate
5ac621f
No `ownFocus`
f93898d
Change `role=‘none’` to `role=null`
3273e25
Merge remote-tracking branch 'upstream/master' into update/collapsibl…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { PropTypes } from 'react-view'; | ||
import { EuiCollapsibleNav } from '../../../../src/components/'; | ||
import { propUtilityForPlayground } from '../../services/playground'; | ||
|
||
export const collapsibleNavConfig = () => { | ||
const docgenInfo = Array.isArray(EuiCollapsibleNav.__docgenInfo) | ||
? EuiCollapsibleNav.__docgenInfo[0] | ||
: EuiCollapsibleNav.__docgenInfo; | ||
const propsToUse = propUtilityForPlayground(docgenInfo.props); | ||
|
||
propsToUse.isOpen = { | ||
...propsToUse.isOpen, | ||
value: true, | ||
}; | ||
|
||
propsToUse.ownFocus = { | ||
...propsToUse.ownFocus, | ||
value: false, | ||
disabled: true, | ||
}; | ||
|
||
propsToUse.size = { | ||
...propsToUse.size, | ||
type: PropTypes.Number, | ||
value: 240, | ||
}; | ||
|
||
propsToUse.as = { | ||
...propsToUse.as, | ||
type: PropTypes.string, | ||
value: 'nav', | ||
}; | ||
|
||
propsToUse.as = { | ||
...propsToUse.as, | ||
type: PropTypes.string, | ||
value: 'nav', | ||
}; | ||
|
||
return { | ||
config: { | ||
componentName: 'EuiCollapsibleNav', | ||
props: propsToUse, | ||
scope: { | ||
EuiCollapsibleNav, | ||
}, | ||
imports: { | ||
'@elastic/eui': { | ||
named: ['EuiCollapsibleNav'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there any reason we want the snippet to have
ownFocus={false}
?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.
Ah yeah, so in Kibana we're going to use this setting on the global nav and went back and forth whether our docs should have it off by default too, then I think I forgot to update the snippet. Good catch.