Skip to content
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

[EuiListGroup] and [Items] Adds gutterSize, color #2980

Merged
merged 7 commits into from
Mar 5, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Mar 4, 2020

Support for new nav

EuiListGroupItem color

Currently, the only way to color the text of the list group items was by custom classes. Buttons were inheriting text color, while links where inheriting primary color. The default is still to inherit, but gives the consumer ways to forces the buttons, text or links to be primary, text or subdued.

Screen Shot 2020-03-03 at 22 02 21 PM

EuiListGroup gutterSize

A static top margin was added to each item within the list group. Now there's an option to adjust that spacing to none | s | m. Default is s. And flush still works appropriately.

Screen Shot 2020-03-03 at 22 04 33 PM

Tests & snippets

There was a major lacking in the tests for EuiListGroup, so those have been beefed up. And snippets have been added to all the doc examples.

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2980/

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

(with a CL entry)

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2980/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_2980/

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Did a quick scan of this one for code and checked the preview.

@cchaos cchaos merged commit 1343725 into elastic:master Mar 5, 2020
@cchaos cchaos deleted the props/list_group branch March 5, 2020 17:02
Copy link
Contributor

@andreadelrio andreadelrio left a comment

Choose a reason for hiding this comment

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

LGTM, just noticed a typo and added a question about classnames.

src/components/list_group/list_group_item.tsx Show resolved Hide resolved
src/components/list_group/list_group.tsx Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants