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

Fix non-polyfilled themed UI components #3829

Merged
merged 1 commit into from Jul 3, 2018
Merged

Fix non-polyfilled themed UI components #3829

merged 1 commit into from Jul 3, 2018

Conversation

shilman
Copy link
Member

@shilman shilman commented Jul 3, 2018

Issue: #3825

What I did

There were a couple components that did not use react-lifecycle-compat polyfills and broke theming for React v16.3 (?) and below. Added in the needed polyfills.

How to test

  1. Create a CRA with React 16.0.0
  2. Add the updated library
  3. Storybook should run properly

Is this testable with Jest or Chromatic screenshots?
Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

For maintainers only: Please tag your pull request with at least one of the following:
["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@shilman shilman added the bug label Jul 3, 2018
@shilman shilman self-assigned this Jul 3, 2018
@shilman shilman merged commit c24eea7 into master Jul 3, 2018
@shilman shilman deleted the 3825-fix-theming branch July 3, 2018 22:41
@codecov
Copy link

codecov bot commented Jul 3, 2018

Codecov Report

Merging #3829 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3829      +/-   ##
==========================================
+ Coverage   41.31%   41.35%   +0.04%     
==========================================
  Files         455      455              
  Lines        5182     5184       +2     
  Branches      900      900              
==========================================
+ Hits         2141     2144       +3     
+ Misses       2497     2496       -1     
  Partials      544      544
Impacted Files Coverage Δ
lib/ui/src/modules/ui/components/search_box.js 89.74% <100%> (+2.9%) ⬆️
lib/ui/src/modules/ui/components/shortcuts_help.js 39.28% <100%> (+2.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c33f1e...e8fe173. Read the comment docs.

@Hypnosphi
Copy link
Member

Hypnosphi commented Jul 3, 2018

@ndelangen
Copy link
Member

I'm guessing @Hypnosphi is right, if the reference to the theme doesn't change then a PureComponent is slightly better.

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.

None yet

3 participants