eui icon indicating copy to clipboard operation
eui copied to clipboard

WIP. First pass at CSS before spread child props ESLint rule.

Open 1Copenut opened this issue 2 years ago • 1 comments

Summary

Provide a detailed summary of your PR. Explain how you arrived at your solution. If it includes changes to UI elements include a screenshot or gif.

Checklist

  • [ ] Checked in both light and dark modes
  • [ ] Checked in mobile
  • [ ] Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for any docs examples
  • [ ] Added or updated jest and cypress tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • [ ] Updated the Figma library counterpart
  • [ ] A changelog entry exists and is marked appropriately

1Copenut avatar Sep 21 '22 21:09 1Copenut

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

kibanamachine avatar Sep 21 '22 22:09 kibanamachine

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

kibanamachine avatar Sep 23 '22 18:09 kibanamachine

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

kibanamachine avatar Sep 27 '22 19:09 kibanamachine

I'll look over the components with linting changes for visual regression. LMK if this feels like a breaking change and I'll add the label.

1Copenut avatar Sep 28 '22 15:09 1Copenut

This looks and works great. I just have a couple very minor comments, fantastic work on this Trevor!

edit to add: this is not a breaking change, just IMO, and I agree it doesn't need a changelog

cee-chen avatar Sep 28 '22 16:09 cee-chen

Thank you @constancecchen for the 💯 code change suggestions. I turned on Prettier format on save, so it broke some of my one line const declarations into 2-3 and wrapped single arrow function arguments.

I esp liked the suggestion to move early return guard clauses closer to their declarations. Moving those lines around provided clearer intent.

1Copenut avatar Sep 28 '22 19:09 1Copenut

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

kibanamachine avatar Sep 28 '22 19:09 kibanamachine

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

kibanamachine avatar Sep 28 '22 20:09 kibanamachine