Skip to content

Commit 19e37bf

Browse files
authored
Upgrade EUI to v96.1.0 (elastic#194619)
`v95.12.0`⏩`v96.1.0` _[Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_ --- ## [`v96.0.0`](https://github.com/elastic/eui/releases/v96.0.0) - Improved `EuiPageHeader`/`EuiPageTemplate.Header`'s responsive UX: ([elastic#8044](elastic/eui#8044)) - `rightSideItems` are no longer pushed to the side by wide `tabs` content - `rightSideItems` now wrap more responsively at smaller container widths - Updated `EuiDraggable` with a new `usePortal` prop. ([elastic#8048](elastic/eui#8048)) - This prop portals the dragged element to the body, allowing it to escape stacking contexts which prevents buggy drag positioning in e.g. popovers, modals, and flyouts. **Bug fixes** - Fixed `EuiProvider`'s system color mode detection causing errors during server-side rendering ([elastic#8040](elastic/eui#8040)) - Fixed an `EuiDataGrid` rendering bug that was causing bouncing scrollbar issues ([elastic#8041](elastic/eui#8041)) - Fixed `EuiSearchBox` skips input when running with React 18 in Legacy Mode ([elastic#8047](elastic/eui#8047)) **Deprecations** - Deprecated `EuiPopover`'s `hasDragDrop` prop. Use `EuiDraggable`'s new `usePortal` prop instead. ([elastic#8048](elastic/eui#8048)) **Breaking changes** - Removed the following exported `.css` files: ([elastic#8045](elastic/eui#8045)) - `@elastic/eui/dist/eui_theme_light.css` - `@elastic/eui/dist/eui_theme_light.min.css` - `@elastic/eui/dist/eui_theme_dark.css` - `@elastic/eui/dist/eui_theme_dark.min.css` - All EUI components are now on CSS-in-JS. A CSS file/import in consuming applications is no longer needed, and is safe to remove. ([elastic#8045](elastic/eui#8045)) - Removed all `src/theme/legacy` Sass exports ([elastic#8054](elastic/eui#8054)) **CSS-in-JS conversions** - Removed the following component-specific Sass variables: ([elastic#8031](elastic/eui#8031)) - `$euiButtonColorDisabled` - `$euiButtonColorDisabledText` - `$euiButtonColorGhostDisabled` - `$euiButtonFontWeight` - `$euiFormControlIconSizes` - `$euiFormControlLayoutGroupInputHeight` - `$euiFormControlLayoutGroupInputCompressedHeight` - `$euiFormControlLayoutGroupInputCompressedBorderRadius` - `$euiPageSidebarMinWidth` - `$euiPageDefaultMaxWidth` - `$euiPanelPaddingModifiers` - `$euiPanelBorderRadiusModifiers` - `$euiPanelBackgroundColorModifiers` - `$euiRangeTrackColor` - `$euiRangeHighlightColor` - `$euiRangeThumbHeight` - `$euiRangeThumbWidth` - `$euiRangeThumbBorderColor` - `$euiRangeThumbBackgroundColor` - `$euiRangeTrackWidth` - `$euiRangeTrackHeight` - `$euiRangeTrackCompressedHeight` - `$euiRangeTrackBorderWidth` - `$euiRangeTrackBorderColor` - `$euiRangeTrackRadius` - `$euiRangeDisabledOpacity` - `$euiRangeHighlightHeight` - `$euiRangeHighlightCompressedHeight` - `$euiRangeHeight` - `$euiRangeCompressedHeight` - `$euiTooltipAnimations` - `$euiTooltipBackgroundColor` - `$euiTooltipBorderColor` - Removed the following Sass mixins due to low external usage: ([elastic#8031](elastic/eui#8031)) - `euiHoverState` - `euiFocusState` - `euiDisabledState` - `euiInteractiveStates` - `euiFormControlStyle` - `euiFormControlStyleCompressed` - `euiFormControlFocusStyle` - `euiFormControlInvalidStyle` - `euiFormControlDisabledTextStyle` - `euiFormControlDisabledStyle` - `euiFormControlReadOnlyStyle` - `euiFormControlText` - `euiFormControlSize` - `euiFormControlGradient` - `euiFormControlLayoutPadding` - `euiFormControlWithIcon` - `euiFormControlIsLoading` - `euiFormControlSideBorderRadius` - `euiPlaceholderPerBrowser` - `euiHiddenSelectableInput` - `euiLink` - `euiLoadingSpinnerBorderColors` - `euiRangeTrackSize` - `euiRangeTrackPerBrowser` - `euiRangeThumbBorder` - `euiRangeThumbBoxShadow` - `euiRangeThumbFocusBoxShadow` - `euiRangeThumbStyle` - `euiRangeThumbPerBrowser` - `euiRangeThumbFocus` - `euiToolTipAnimation` ## [`v96.1.0`](https://github.com/elastic/eui/releases/v96.1.0) **CSS-in-JS conversions** - Removed the following component-specific Sass mixins: ([elastic#8055](elastic/eui#8055)) - `euiButton` - `euiButtonBase` - `euiButtonFocus` - `euiButtonContent` - `euiButtonContentDisabled` - `euiButtonDefaultStyle` - `euiButtonFillStyle` - `euiPanel` - `euiFormControlDefaultShadow` - `euiToolTipTitle`
1 parent d3f3d34 commit 19e37bf

File tree

13 files changed

+229
-243
lines changed

13 files changed

+229
-243
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"@elastic/ecs": "^8.11.1",
118118
"@elastic/elasticsearch": "^8.15.0",
119119
"@elastic/ems-client": "8.5.3",
120-
"@elastic/eui": "95.12.0-backport.0",
120+
"@elastic/eui": "96.1.0",
121121
"@elastic/filesaver": "1.1.2",
122122
"@elastic/node-crypto": "1.2.1",
123123
"@elastic/numeral": "^2.5.1",

packages/kbn-securitysolution-exception-list-components/src/list_header/__snapshots__/list_header.test.tsx.snap

Lines changed: 167 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/kbn-test/src/jest/setup/emotion.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,14 @@ console.error = (message, ...rest) => {
2929
) {
3030
return;
3131
}
32+
// @see https://github.com/jsdom/jsdom/issues/2177
33+
// JSDOM doesn't yet know how to parse @container CSS queries -
34+
// all we can do is silence its errors for now
35+
if (
36+
typeof message === 'object' &&
37+
message?.message?.startsWith('Could not parse CSS stylesheet')
38+
) {
39+
return;
40+
}
3241
consoleError(message, ...rest);
3342
};

packages/shared-ux/page/kibana_template/impl/src/__snapshots__/page_template.test.tsx.snap

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dev/license_checker/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const LICENSE_OVERRIDES = {
8787
'[email protected]': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
8888
'@mapbox/[email protected]': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
8989
'@elastic/[email protected]': ['Elastic License 2.0'],
90-
'@elastic/eui@95.12.0-backport.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
90+
'@elastic/eui@96.1.0': ['Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0'],
9191
'[email protected]': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
9292
'[email protected]': ['MIT'], // license in importing module https://www.npmjs.com/package/binary
9393
'@bufbuild/[email protected]': ['Apache-2.0'], // license (Apache-2.0 AND BSD-3-Clause)

src/plugins/saved_objects_management/public/management_section/object_view/components/__snapshots__/header.test.tsx.snap

Lines changed: 33 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/unified_search/public/filters_builder/filter_item/filter_item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export function FilterItem({
251251
hasInteractiveChildren={true}
252252
disableInteractiveElementBlocking
253253
className={cx(disabledDraggableCss)}
254+
usePortal
254255
>
255256
{(provided) => (
256257
<EuiFlexGroup

src/plugins/unified_search/public/query_string_input/add_filter_popover.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const AddFilterPopoverComponent = React.memo(function AddFilterPopover({
9393
initialFocus=".filterEditor__hiddenItem"
9494
ownFocus
9595
repositionOnScroll
96-
hasDragDrop
9796
>
9897
<FilterEditorWrapper
9998
indexPatterns={indexPatterns}

src/plugins/unified_search/public/query_string_input/query_bar_menu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ function QueryBarMenuComponent({
267267
anchorPosition="downLeft"
268268
repositionOnScroll
269269
data-test-subj="queryBarMenuPopover"
270-
hasDragDrop
271270
>
272271
{renderComponent()}
273272
</EuiPopover>

x-pack/plugins/cases/public/components/all_cases/columns_popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export const ColumnsPopover: React.FC<Props> = ({
9898
closePopover={closePopover}
9999
panelPaddingSize="s"
100100
anchorPosition="leftUp"
101-
hasDragDrop
102101
zIndex={0}
103102
data-test-subj="column-selection-popover"
104103
button={
@@ -158,6 +157,7 @@ export const ColumnsPopover: React.FC<Props> = ({
158157
css={{ height: euiTheme.size.xl, paddingLeft: euiTheme.size.base }}
159158
customDragHandle
160159
hasInteractiveChildren
160+
usePortal
161161
>
162162
{(provided) => (
163163
<EuiFlexGroup alignItems="center" gutterSize="m" justifyContent="spaceBetween">

0 commit comments

Comments
 (0)