-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Upgrade EUI to v70.2.4 #144845
Upgrade EUI to v70.2.4 #144845
Conversation
25f8af8
to
f93518e
Compare
- reverts temporary fixes; should now be addressed in EUI itself
- corresponds to visColors, so convert to that util instead [refactor] while here, convert file to using native EUI `useEuiTheme` instead of referencing the Sass vars
…lasses address TODO by using component directly - EuiCodeBlock now supports JSX/nodes, albeit without syntax highlighting (not an issue since that wasn't being used here)
- replace with basic EUI size variables
- Emotion adds another wrapper, so we now have to use `.last()` in Enzyme finding - className modifiers have been removed, so we have to replace them with their Emotion equivalents - this isn't great but to be honest we don't recommend asserting on EUI classNames anyway - certain selectors updated to specificy their raw/DOM output vs enzyme wrappers
…h theme color mode
## Summary `eui@67.1.8` ⏩ `eui@67.1.9` This backport fixes bugs affecting Maps that were found in the latest EUI upgrade (#144845 (comment)). It is meant to go directly into 8.6 ## [`67.1.9`](https://github.com/elastic/eui/tree/v67.1.9) - `EuiButton` now accepts `minWidth={false}` ([#6373](elastic/eui#6373)) **Bug fixes** - Fixed the shadow sizes of `.eui-yScrollWithShadows` and `.eui-xScrollWithShadows` ([#6374](elastic/eui#6374)) - `EuiButton` no longer outputs unnecessary inline styles for `minWidth={0}` or `minWidth={false}` ([#6373](elastic/eui#6373)) - `EuiFacetButton` no longer reports type issues when passing props accepted by `EuiButton` ([#6373](elastic/eui#6373)) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Pinging remaining CODEOWNERS: @elastic/security-solution-platform @elastic/protections-experience @elastic/security-onboarding-and-lifecycle-mgt @ashokaditya @dasansol92 Last call for review/approval/QA - I'll be asking KibanaOps to admin merge this by the end of the week. This PR will not be landing in 8.6, so any issues found will have the full 8.7 minor to resolve. |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanx @constancecchen for your amazing work here 🙇 Visualizations team LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this huge update. 🙇 . security_solution/management
changes LGTM. I checked out the changes locally and I do see some discrepancies with font weight for the response actions history. I'll test it again after the suggested change goes in. Thanks 🙏
...blic/management/components/endpoint_response_actions_list/use_response_actions_log_table.tsx
Show resolved
Hide resolved
@jughosta Yes, this was an intentional EUI designer change as confirmed by @miukimiu above. elastic/eui#6282 cc @MichaelMarcialis - I do agree that the filter icon now does look a little odd next to the +/- icons, so you may want to consider re-adding a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! ❤️
@jughosta I'll re-include the old |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
) ## Summary @jughosta flagged several responsive issues in #144845 (review). Two of these were existing issues in Kibana main and need to be backported to 8.6, hence the separate PR. I recommend turning off whitespace changes when viewing the diff, as much of the wrapped/unwrapped code remained the same except for indentation. ### Create Field flyout: #### Before: <img width="760" alt="" src="https://user-images.githubusercontent.com/549407/202580476-610e3f54-eabb-4859-a49d-19d0608be787.png"> #### After: <img width="779" alt="" src="https://user-images.githubusercontent.com/549407/202580282-886435e7-00cc-4569-943d-fff471b3af7b.png"> ### Fields flyout (mobile only): #### Before: <img width="754" alt="" src="https://user-images.githubusercontent.com/549407/202580465-917ef121-d0eb-4188-bcf7-2b08edb5dd49.png"> #### After: <img width="761" alt="" src="https://user-images.githubusercontent.com/549407/202580275-820b9420-a8da-458e-bbb4-5f1cfb57ba99.png"> ### Checklist - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
…tic#145650) ## Summary @jughosta flagged several responsive issues in elastic#144845 (review). Two of these were existing issues in Kibana main and need to be backported to 8.6, hence the separate PR. I recommend turning off whitespace changes when viewing the diff, as much of the wrapped/unwrapped code remained the same except for indentation. ### Create Field flyout: #### Before: <img width="760" alt="" src="https://user-images.githubusercontent.com/549407/202580476-610e3f54-eabb-4859-a49d-19d0608be787.png"> #### After: <img width="779" alt="" src="https://user-images.githubusercontent.com/549407/202580282-886435e7-00cc-4569-943d-fff471b3af7b.png"> ### Fields flyout (mobile only): #### Before: <img width="754" alt="" src="https://user-images.githubusercontent.com/549407/202580465-917ef121-d0eb-4188-bcf7-2b08edb5dd49.png"> #### After: <img width="761" alt="" src="https://user-images.githubusercontent.com/549407/202580275-820b9420-a8da-458e-bbb4-5f1cfb57ba99.png"> ### Checklist - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co> (cherry picked from commit 10c6649)
…#145650) (#145789) # Backport This will backport the following commits from `main` to `8.6`: - [[Discover] Fix Fields flyout and Create Field flyouts on mobile (#145650)](#145650) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Constance","email":"constancecchen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-11-19T06:44:28Z","message":"[Discover] Fix Fields flyout and Create Field flyouts on mobile (#145650)\n\n## Summary\r\n\r\n@jughosta flagged several responsive issues in\r\nhttps://github.com//pull/144845#pullrequestreview-1183919709.\r\nTwo of these were existing issues in Kibana main and need to be\r\nbackported to 8.6, hence the separate PR.\r\n\r\nI recommend turning off whitespace changes when viewing the diff, as\r\nmuch of the wrapped/unwrapped code remained the same except for\r\nindentation.\r\n\r\n### Create Field flyout:\r\n\r\n#### Before:\r\n<img width=\"760\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580476-610e3f54-eabb-4859-a49d-19d0608be787.png\">\r\n\r\n#### After:\r\n<img width=\"779\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580282-886435e7-00cc-4569-943d-fff471b3af7b.png\">\r\n\r\n### Fields flyout (mobile only):\r\n\r\n#### Before:\r\n<img width=\"754\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580465-917ef121-d0eb-4188-bcf7-2b08edb5dd49.png\">\r\n\r\n#### After:\r\n<img width=\"761\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580275-820b9420-a8da-458e-bbb4-5f1cfb57ba99.png\">\r\n\r\n### Checklist\r\n\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>","sha":"10c6649f4b28184fc07d41f081fac7e56c447a50","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v8.6.0","v8.7.0"],"number":145650,"url":"https://github.com/elastic/kibana/pull/145650","mergeCommit":{"message":"[Discover] Fix Fields flyout and Create Field flyouts on mobile (#145650)\n\n## Summary\r\n\r\n@jughosta flagged several responsive issues in\r\nhttps://github.com//pull/144845#pullrequestreview-1183919709.\r\nTwo of these were existing issues in Kibana main and need to be\r\nbackported to 8.6, hence the separate PR.\r\n\r\nI recommend turning off whitespace changes when viewing the diff, as\r\nmuch of the wrapped/unwrapped code remained the same except for\r\nindentation.\r\n\r\n### Create Field flyout:\r\n\r\n#### Before:\r\n<img width=\"760\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580476-610e3f54-eabb-4859-a49d-19d0608be787.png\">\r\n\r\n#### After:\r\n<img width=\"779\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580282-886435e7-00cc-4569-943d-fff471b3af7b.png\">\r\n\r\n### Fields flyout (mobile only):\r\n\r\n#### Before:\r\n<img width=\"754\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580465-917ef121-d0eb-4188-bcf7-2b08edb5dd49.png\">\r\n\r\n#### After:\r\n<img width=\"761\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580275-820b9420-a8da-458e-bbb4-5f1cfb57ba99.png\">\r\n\r\n### Checklist\r\n\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>","sha":"10c6649f4b28184fc07d41f081fac7e56c447a50"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145650","number":145650,"mergeCommit":{"message":"[Discover] Fix Fields flyout and Create Field flyouts on mobile (#145650)\n\n## Summary\r\n\r\n@jughosta flagged several responsive issues in\r\nhttps://github.com//pull/144845#pullrequestreview-1183919709.\r\nTwo of these were existing issues in Kibana main and need to be\r\nbackported to 8.6, hence the separate PR.\r\n\r\nI recommend turning off whitespace changes when viewing the diff, as\r\nmuch of the wrapped/unwrapped code remained the same except for\r\nindentation.\r\n\r\n### Create Field flyout:\r\n\r\n#### Before:\r\n<img width=\"760\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580476-610e3f54-eabb-4859-a49d-19d0608be787.png\">\r\n\r\n#### After:\r\n<img width=\"779\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580282-886435e7-00cc-4569-943d-fff471b3af7b.png\">\r\n\r\n### Fields flyout (mobile only):\r\n\r\n#### Before:\r\n<img width=\"754\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580465-917ef121-d0eb-4188-bcf7-2b08edb5dd49.png\">\r\n\r\n#### After:\r\n<img width=\"761\" alt=\"\"\r\nsrc=\"https://user-images.githubusercontent.com/549407/202580275-820b9420-a8da-458e-bbb4-5f1cfb57ba99.png\">\r\n\r\n### Checklist\r\n\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>","sha":"10c6649f4b28184fc07d41f081fac7e56c447a50"}}]}] BACKPORT--> Co-authored-by: Constance <constancecchen@users.noreply.github.com>
## Summary closes #145508 This workaround was added in 7832378. A non-temporary fix was pushed up in 8.7 (#144845), but rather than create a new EUI backport just for this issue, I'm opting to fix the 8.6-only workaround. ### Before <img src="https://user-images.githubusercontent.com/61860752/202394082-c82006af-1492-4537-a354-8e2f60b4b45e.png" alt=""> ### After <img width="909" alt="" src="https://user-images.githubusercontent.com/549407/203149130-a5cc0a69-d736-4e89-9d26-6e5e870238b4.png"> ### Checklist - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
Summary
eui@67.1.8
⏩eui@70.2.2
EuiFlexGroup
andEuiFlexGrid
, primarily around switching margins and negative margins togap
. Please do a quick QA pass of your app to scan for any issues. We're happy to help resolve minor fixes, or potentially follow up after PR merges. You can find us over in #eui!70.2.4
Bug fixes
EuiFlexGroup
s, where the parentEuiFlexGroup
is responsive but a childEuiFlexGroup
is not (#6381)70.2.3
Bug fixes
EuiSuperDatePicker
caused byEuiFlex
CSS gap change (#6380)70.2.2
EuiButton
now acceptsminWidth={false}
(#6373)Bug fixes
EuiButton
no longer outputs unnecessary inline styles forminWidth={0}
orminWidth={false}
(#6373)EuiFacetButton
no longer reports type issues when passing props accepted byEuiButton
(#6373).eui-yScrollWithShadows
and.eui-xScrollWithShadows
(#6374)70.2.1
Bug fixes
EuiPageSection
not correctly mergingcontentProps.css
(#6365)EuiTab
not defaulting to sizem
(#6366)70.2.0
EuiDataGrid
's toolbar. This can be visually hidden viatoolbarVisibility.showKeyboardShortcuts
, but will always remain accessible to keyboard and screen reader users. (#6036)EuiScreenReaderOnly
'sshowOnFocus
prop now also shows on focus within its children (#6036)onFocus
prop callback toEuiSuperDatePicker
(#6320)Bug fixes
EuiSelectable
to ensure the full options list is re-displayed when the search bar is controlled and cleared usingsearchProps.value
(#6317)xl
-sizedEuiTabs
(#6336)EuiCard
not correctly mergingcss
on its childicon
s (#6341)EuiCheckableCard
not settingcss
on the correct DOM node (#6341)EuiModal
s containingEuiBasicTable
s tall enough to scroll (#6343)to_initials
that truncates custom initials (#6346)EuiCard
where layout breaks whenhorizontal
andselectable
are both passed (#6348)70.1.0
hint
prop to the<EuiSearchBar />
. This prop lets the consumer render a hint below the search bar that will be displayed on focus. (#6319)hasDragDrop
prop toEuiPopover
. Use this prop if your popover containsEuiDragDropContext
. (#6329)Bug fixes
EuiButton
's cursor style when the button is disabled (#6323)EuiPageTemplate
not recognizing childEuiPageSidebar
s/EuiPageTemplate.Sidebar
s withcss
props (#6324)EuiBetaBadge
to always respect itsanchorProps
values, including when there is no tooltip content (#6326)EuiModal
to not cause scroll-jumping issues on modal open (#6327)EuiDataGrid
's columns & sorting toolbar popovers (#6329)EuiButton
not correctly passingtextProps
for children inside fragments or i18n components (#6332)EuiButton
not correctly respectingminWidth={0}
(#6332)CSS-in-JS conversions
EuiTabs
to Emotion (#6311)70.0.0
enabled
option to the<EuiInMemoryTable />
executeQueryOptions
prop. This option prevents the Query from being executed when controlled by the consumer. (#6284)Bug fixes
EuiOverlayMask
to set a[data-relative-to-header=above|below]
attribute to replace the--aboveHeader
and--belowHeader
classNames removed in its Emotion conversion (#6289)EuiHeader
CSS using removedEuiOverlayMask
class modifiers (#6293)EuiToolTip
not respecting reduced motion preferences (#6295)EuiTour
where passing anypanelProps
would cause the beacon to disappear (#6298)Breaking changes
@emotion/css
is now a required peer dependency, alongside@emotion/react
(#6288)@emotion/cache
is no longer required peer dependency, although your project must still use it if setting custom cache/injection locations (#6288)CSS-in-JS conversions
EuiCode
andEuiCodeBlock
to Emotion; RemovedeuiCodeSyntaxTokens
Sass mixin and$euiCodeBlockPaddingModifiers
; (#6263)EuiResizableContainer
andEuiResizablePanel
to Emotion (#6287)69.0.0
fullWidth
prop on EuiForm, which will be the default for all rows/controls within (#6229)onResizeStart
andonResizeEnd
callbacks toEuiResizableContainer
(#6236)EuiComboBox
with theisCaseSensitive
prop (#6268)EuiFlexItem
now supportsgrow={0}
(#6270)alignItems
prop toEuiFlexGrid
(#6281)filter
,filterExclude
,filterIgnore
,filterInclude
,indexTemporary
,infinity
,sortAscending
, andsortDescending
glyphs toEuiIcon
(#6282)Bug fixes
EuiTextProps
to show thecolor
type optioninherit
as default (#6267)EuiFlexGroup
now correctly respectsgutterSize
when responsive (#6270)EuiBreadcrumbs
'sbreadcrumbs
array not respectingtruncate
overrides (#6280)Breaking changes
EuiFlexGrid
no longer supportscolumns={0}
. UseEuiFlexGroup
instead for normal flex display (#6270)EuiFlexGrid
now uses moderndisplay: grid
CSS (#6270)EuiFlexGroup
,EuiFlexGrid
, andEuiFlexItem
now use moderngap
CSS instead of margins and negative margins (#6270)EuiFlexGroup
no longer applies responsive styles tocolumn
orcolumnReverse
directions (#6270)CSS-in-JS conversions
EuiFlexGroup
,EuiFlexGrid
, andEuiFlexItem
to Emotion (#6270)68.0.0
beta
glyph toEuiIcon
(#6250)launch
andspaces
glyphs toEuiIcon
(#6260)fallbackDestination
prop toEuiSkipLink
, which accepts a string of query selectors to fall back to if thedestinationId
does not have a valid target. Defaults tomain
(#6261)EuiSkipLink
is now always ana
tag to ensure that it is always placed within screen reader link menus. (#6261)Bug fixes
EuiSuperDatePicker
not correctly merging passedclassName
s (#6253)EuiColorStops
not correctly merging in passeddata-test-subj
s,style
s, or...rest
(#6255)EuiResizablePanel
incorrectly passingstyle
to the wrapper instead of the panel. UsewrapperProps.style
to pass styles to the wrapper. (#6255)onClick
s passed toEuiSkipLink
overridingoverrideLinkBehavior
(#6261)Breaking changes
inherit
andghost
color fromEuiListGroupItem
(#6207)text
instead ofinherit
(#6207)CSS-in-JS conversions
EuiListGroup
andEuiListGroupItem
to Emotion; Removed$euiListGroupGutterTypes
,$euiListGroupItemColorTypes
and$euiListGroupItemSizeTypes
; (#6207)EuiBadgeGroup
to Emotion (#6258)EuiBetaBadge
to Emotion (#6258)EuiNotificationBadge
to Emotion (#6258)