[Defend workflows] [On-week] Migrate osquery from styled-components to @emotion#161179
[Defend workflows] [On-week] Migrate osquery from styled-components to @emotion#161179tomsonpl merged 38 commits intoelastic:mainfrom
Conversation
…hile using styled-components themeProvider
…rate-styles-osquery
| ); | ||
|
|
||
| return isCasesContextValue(value) ? ( | ||
| <QueryClientProvider client={casesQueryClient}> |
There was a problem hiding this comment.
this had to be adjusted - otherwise using cases.ui ends up not finding theme in case where original plugin does not provide it - eg. Osquery plugin (previously had styled-components provider) using emotion provider, renders cases.ui addToCaseModal = it crashed because of missing theme.
x-pack/plugins/osquery/public/saved_queries/saved_queries_dropdown.tsx
Outdated
Show resolved
Hide resolved
src/plugins/kibana_react/public/theme/kibana_theme_provider.tsx
Outdated
Show resolved
Hide resolved
# Conflicts: # src/plugins/kibana_react/public/theme/kibana_theme_provider.tsx
…rate-styles-osquery
This reverts commit 62474ee.
cee-chen
left a comment
There was a problem hiding this comment.
Mostly optional / cleanup comments! As I mentioned in Slack, this is just code review on my part, no QA :)
| const euiFlyoutHeaderCss = { | ||
| '&.euiFlyoutHeader': { | ||
| paddingTop: '21px', | ||
| paddingBottom: '20px', | ||
| }, | ||
| }; |
There was a problem hiding this comment.
Mentioning for completeness, @elastic/kibana-design designers (in the past) generally encouraged devs to use euiTheme.size variables rather than use static px values. For the purpose of this conversion I don't think it's required since it was already that way before, but maybe something to think about later!
x-pack/plugins/osquery/public/live_queries/form/query_pack_selectable.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/osquery/public/live_queries/form/pack_results_header.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/osquery/public/packs/queries/ecs_mapping_editor_field.tsx
Show resolved
Hide resolved
This reverts commit 358c2e1.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @tomsonpl |
cee-chen
left a comment
There was a problem hiding this comment.
🎉 🎉 Thanks again for being super proactive on moving from styled-components to Emotion! I appreciate y'all!
Notes: