[New Nav Feature] EuiPinnableListGroup#3061
[New Nav Feature] EuiPinnableListGroup#3061cchaos merged 12 commits intoelastic:feature/collapsible_navfrom
Conversation
…list_group` Also made `onPinClick` required
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3061/ |
thompsongl
left a comment
There was a problem hiding this comment.
This is a good idea 👍
I think we need i18n for the labels
src/components/list_group/pinnable_list_group/pinnable_list_group.tsx
Outdated
Show resolved
Hide resolved
src/components/list_group/pinnable_list_group/pinnable_list_group.tsx
Outdated
Show resolved
Hide resolved
Yeah that's an artificat from |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3061/ |
|
I have pushed a commit that fixes the EuiListGroup focus/hover states and added the ability for consumers to override the default titles for the pin icons. |
|
@myasonik The one thing we should consider with a11y in the underlying EuiListGroup is the tabbing. It might get really cumbersome for users to have to tab from |
|
Jenkins, test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3061/ |
* Added EuiCollapsibleNavGroupList component * Added content to EuiCollapsibleNavList * Update to use latest props from EuiListGroup * Passing `color` to EuiListGroup * Added active link to examples * Better docs for nav list and added snippets * cleanup * Renamed `EuiCollapsibleList` to `EuiPinnableListGroup` and moved to `list_group` Also made `onPinClick` required * i18n * Fix focus and focus-within states With IE fallback * Allowing pin icon title/aria-labels to be custom Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* Added EuiCollapsibleNavGroupList component * Added content to EuiCollapsibleNavList * Update to use latest props from EuiListGroup * Passing `color` to EuiListGroup * Added active link to examples * Better docs for nav list and added snippets * cleanup * Renamed `EuiCollapsibleList` to `EuiPinnableListGroup` and moved to `list_group` Also made `onPinClick` required * i18n * Fix focus and focus-within states With IE fallback * Allowing pin icon title/aria-labels to be custom Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* Added EuiCollapsibleNavGroupList component * Added content to EuiCollapsibleNavList * Update to use latest props from EuiListGroup * Passing `color` to EuiListGroup * Added active link to examples * Better docs for nav list and added snippets * cleanup * Renamed `EuiCollapsibleList` to `EuiPinnableListGroup` and moved to `list_group` Also made `onPinClick` required * i18n * Fix focus and focus-within states With IE fallback * Allowing pin icon title/aria-labels to be custom Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* [Feature] Added `EuiCollapsibleNav` component (#2977) * [New Nav Feature] Added `ghost` colored EuiListGroupItem (#3018) * [New Nav Feature] Created `EuiCollapsibleGroup` (#3031) * [New Nav Feature] EuiPinnableListGroup (#3061) * [K8 Nav Feature] Added `home` and `menu` glyphs to EuiIcon (#3109) * [New Nav Feature] Final docs examples and patterns (#3117) * [New Nav Feature] Move collapsible nav toggle button to be part of EuiCollapsibleNav (#3168)
* [Feature] Added `EuiCollapsibleNav` component (elastic#2977) * [New Nav Feature] Added `ghost` colored EuiListGroupItem (elastic#3018) * [New Nav Feature] Created `EuiCollapsibleGroup` (elastic#3031) * [New Nav Feature] EuiPinnableListGroup (elastic#3061) * [K8 Nav Feature] Added `home` and `menu` glyphs to EuiIcon (elastic#3109) * [New Nav Feature] Final docs examples and patterns (elastic#3117) * [New Nav Feature] Move collapsible nav toggle button to be part of EuiCollapsibleNav (elastic#3168)

EuiPinnableListGroup
Collapsible nav groups can take any children they want. Users can put a simple list of links or use EuiListGroup. To support the "pinning" action for K8, I created a component that simply extends EuiListGroup and applies a standardized pinnable action.
I had originally created this as
EuiCollapsibleListbut felt it really wasn't tied to the collapsible nav but just another pattern on top of list group.Checklist
[ ] Checked for breaking changes and labeled appropriately[ ] A changelog entry exists and is marked appropriately