Skip to content

Conversation

@chandlerprall
Copy link
Contributor

@chandlerprall chandlerprall commented Apr 19, 2022

Summary

Converts EuiHorizontalRule to Emotion. diff'd full-page screen shots with no difference.

This required updating a markdown editor test to check for an element existence instead of taking a full snapshot.

Things to look out for when moving styles

- [ ] Anything in the backlog that could be a quick fix for that component?

  • Convert global Sass vars to JS version like sizing
    - [ ] Convert component-specific Sass vars to exported JS versions
  • Convert side specific padding, margin, and position to -inline and -block (Logical properties)
  • Reduce specificity where possible (usually by reducing class name chaining)
    - [ ] Use gap property to add margin between items if using flex
    - [ ] Can any still existing .js files be converted to TS?

QA

  • Do className, css, and style props work properly when passed by the consumer
  • Does the rendered class read as expected

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

.simulate('click');

expect(component).toMatchSnapshot();
expect(component.find('EuiModal').length).toBe(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

feelsgood.jpg 💆

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Wahoo!

@chandlerprall chandlerprall merged commit e26811a into elastic:main Apr 25, 2022
@chandlerprall chandlerprall deleted the emotion/horizontal_rule branch April 25, 2022 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants