Releases: elastic/eui
Releases Β· elastic/eui
v88.3.0
EuiGlobalToastList
now shows a "Clear all" button by default once above a certain number of toasts (defaults to 3). This threshold is configurable with theshowClearAllButtonAt
prop (#7111)- Added an optional
onClearAllToasts
callback toEuiGlobalToastList
(#7111) - Added the
value
,onChange
, andonCancel
props that allowEuiInlineEdit
to be used as a controlled component (#7157) - Added
grabOmnidirectional
,transitionLeftIn
,transitionLeftOut
,transitionTopIn
, andtransitionTopOut
icon glyphs. (#7168)
Bug fixes
- Fixed
EuiInlineEdit
components to correctly spread...rest
attributes to the parent wrapper (#7157) - Fixed
EuiListGroupItem
to correctly render theextraAction
button whenshowToolTip
is also passed (#7159)
Dependency updates
Accessibility
EuiAccordion
now correctly respects reduced motion settings (#7161)EuiAccordion
now shows a focus outline to keyboard users around its revealed children on open (#7161)
CSS-in-JS conversions
- Converted
EuiSplitPanel
to Emotion (#7172)
v88.2.0
- Added a new
EuiTextTruncate
component, which provides custom truncation options beyond native CSS (#7116) - Fixed-positioned
EuiHeader
s now set a global CSS--euiFixedHeadersOffset
variable, which updates dynamically based on the number of fixed headers on the page. (#7144) EuiFlyout
s now dynamically set their position, height, and mask based on the number of fixed headers on the page. (#7144)- Sticky-positioned
EuiPageSidebar
s now dynamically set their position and height based on the number of fixed headers on the page. This can still be overridden via thesticky.offset
prop if needed. (#7144) EuiPageTemplate
now dynamically offsets content from any fixed headers on the page. This can still be overridden via theoffset
prop if needed. (#7144)- Updated
EuiAccordion
with a newborders
prop (#7154) - Updated
EuiAccordion
with a newbuttonProps.paddingSize
prop (#7154)
Deprecations
- Deprecated the Sass
euiHeaderAffordForFixed
mixin. Use the new global CSSvar(--euiFixedHeadersOffset)
variable instead. (#7144)
CSS-in-JS conversions
- Except for generic CSS utilities, EUI is moving away from providing global
classNames
that are component-specific. As part of this effort, we have removed the followingEuiAccordion
-specific classes: (#7154)- Removed
.euiAccordionForm
styles. Use theborders="horizontal"
prop instead - Removed
.euiAccordionForm__button
styles. Use thebuttonProps={{ paddingSize: 'm' }}
prop instead - Removed
.euiAccordionForm__extraAction
styles. Convert this to your own custom CSS if necessary. - Removed
.euiAccordionForm__title
styles. Convert this to your own custom CSS if necessary.
- Removed
v88.1.0
- Added
font.defaultUnits
theme token. EUI component font sizes default torem
units - this token allows consumers to configure this topx
orem
(#7133) - Updated
EuiDescriptionList
with newcolumnWidths
prop (#7146)
Bug fixes
- Fixed
EuiDataGrid
's keyboard shortcuts popover display (#7146)
CSS-in-JS conversions
- Renamed
useEuiFontSize()
'smeasurement
option tounit
for clarity (#7133)
v88.0.0
- Updated
EuiDescriptionList
with a newcolumnGutterSize
prop (#7062)
Deprecations
- Deprecated
EuiSuggest
. We recommend usingEuiSelectable
orEuiComboBox
instead (#7122) - Deprecated
EuiControlBar
. We recommend usingEuiBottomBar
instead (#7122) - Deprecated
EuiColorStops
. We recommend copying the component to your application if necessary (#7122) - Deprecated
EuiNotificationEvent
. We recommend copying the component to your application if necessary (#7122)
Breaking changes
- Renamed
EuiDescriptionList
'sgutterSize
prop torowGutterSize
(#7062) EuiDescriptionList
'srowGutterSize
prop now defaults to a size ofs
(was previouslym
) (#7062)
Accessibility
- Fixed the dark mode colors of inline
EuiDescriptionListTitle
s to meet WCAG color contrast requirements (#7062)
CSS-in-JS conversions
- Converted
EuiKeyPadMenuItem
to Emotion; Removed$euiKeyPadMenuSize
and$euiKeyPadMenuMarginSize
(#7118)
v87.2.0
EuiResizableButton
is now available as a generic top-level export (#7087)- Added new
alignIndicator
prop toEuiResizableButton
. Defaults tocenter
, and can now additionally be configured tostart
andend
(#7087) - Updated
useGeneratedHtmlId
hook to useReact.useId
as the source of unique identifiers when available (#7095)
CSS-in-JS conversions
v87.1.0
- Updated the underlying library powering
EuiAutoSizer
. This primarily affects typing around thedisableHeight
anddisableWidth
props (#6798) - Added new
EuiAutoSize
,EuiAutoSizeHorizontal
, andEuiAutoSizeVertical
types to supportEuiAutoSizer
's now-stricter typing (#6798) - Updated
EuiDatePickerRange
to supportcompressed
display (#7058) - Updated
EuiFlyoutBody
with a newscrollableTabIndex
prop (#7061) - Added a new
panelMinWidth
prop toEuiInputPopover
(#7071) - Added a new
inputPopoverProps
prop forEuiRange
s andEuiDualRange
s withshowInput="inputWithPopover"
set (#7082)
Bug fixes
- Fixed
EuiToolTip
overriding instead of merging itsaria-describedby
tooltip ID with any existingaria-describedby
s (#7055) - Fixed
EuiSuperDatePicker
'scompressed
display (#7058) - Fixed
EuiAccordion
to remove tabbable children from sequential keyboard navigation when the accordion is closed (#7064) - Fixed
EuiFlyout
s to accept customaria-describedby
IDs (#7065)
Accessibility
- Removed the default
dialog
role andtabIndex
from pushEuiFlyout
s. Push flyouts, compared to overlay flyouts, require manual accessibility management. (#7065)
v87.0.0
- Added beta
componentDefaults
prop toEuiProvider
, which will allow configuring certain default props globally. This list of components and defaults is still under consideration. (#6923) EuiPortal
'sinsert
prop can now be configured globally viaEuiProvider.componentDefaults
(#6941)EuiFocusTrap
'scrossFrame
andgapMode
props can now be configured globally viaEuiProvider.componentDefaults
(#6942)EuiTablePagination
'sitemsPerPage
,itemsPerPageOptions
, andshowPerPageOptions
props can now be configured globally viaEuiProvider.componentDefaults
(#6951)EuiBasicTable
,EuiInMemoryTable
, andEuiDataGrid
now allowpagination.pageSize
to be undefined. If undefined,pageSize
defaults toEuiTablePagination
'sitemsPerPage
component default. (#6993)EuiBasicTable
,EuiInMemoryTable
, andEuiDataGrid
'spagination.pageSizeOptions
will now fall back toEuiTablePagination
'sitemsPerPageOptions
component default. (#6993)- Updated
EuiHeaderLinks
'sgutterSize
spacings (#7005) - Updated
EuiHeaderAlert
's stacking styles (#7005) - Added
toolTipProps
toEuiListGroupItem
that allows customizing item tooltips. (#7018) - Updated
EuiBreadcrumbs
to support breadcrumbs that toggle popovers viapopoverContent
andpopoverProps
(#7031) - Improved the contrast ratio of disabled titles within
EuiSteps
andEuiStepsHorizontal
to meet WCAG AA guidelines. (#7032) - Updated
EuiSteps
andEuiStepsHorizontal
to highlight and provide a more clear visual indication of the current step (#7048)
Bug fixes
- Single uses of
<EuiHeaderSectionItem side="right" />
now align right as expected without needing a previousside="left"
sibling. (#7005) EuiPageTemplate
now correctly displayspanelled={true}
(#7044)
Breaking changes
EuiTablePagination
's defaultitemsPerPage
is now10
(was previously50
). This can be configured throughEuiProvider.componentDefaults
. (#6993)EuiTablePagination
's defaultitemsPerPageOptions
is now[10, 25, 50]
(was previously[10, 20, 50, 100]
). This can be configured throughEuiProvider.componentDefaults
. (#6993)- Removed
border
prop fromEuiHeaderSectionItem
(unused since Amsterdam theme) (#7005) - Removed
borders
object configuration fromEuiHeader.sections
(#7005)
CSS-in-JS conversions
- Converted
EuiHeaderAlert
to Emotion; Removed unused.euiHeaderAlert__dismiss
CSS (#7005) - Converted
EuiHeaderSection
,EuiHeaderSectionItem
, andEuiHeaderSectionItemButton
to Emotion (#7005) - Converted
EuiHeaderLinks
andEuiHeaderLink
to Emotion; Removed$euiHeaderLinksGutterSizes
Sass variables (#7005) - Removed
$euiHeaderBackgroundColor
Sass variable; use$euiColorEmptyShade
instead (#7005) - Removed
$euiHeaderChildSize
Sass variable; use$euiSizeXXL
instead (#7005)
v86.0.0
- Added React 18 support (StrictMode not yet supported). (#7012)
Deprecations
- Deprecated
euiPaletteComplimentary
; UseeuiPaletteComplementary
instead. (#6992)
Breaking changes
- Replaced the underlying drag-and-drop library from
react-beautiful-dnd
to its fork@hello-pangea/dnd
(#7012) (#7012)- No code updates are needed if using only
<EuiDragDropContext>
,<EuiDroppable>
and<EuiDraggable>
with no direct imports fromreact-beautiful-dnd
. In case you were importing things fromreact-beautiful-dnd
and using them together with EUI components, you need to switch to@hello-pangea/dnd
which has cross-compatible API
- No code updates are needed if using only
v85.1.0
- Updated
EuiComboBox
'soptions
to acceptoption.append
andoption.prepend
props (#6953) - Updated deprecated
.substr()
usages to.substring()
(#6954) - Updated
EuiInlineEdit
's read mode button to include a title tooltip, increasing readability of truncated text (#6966)
Bug fixes
- Fixed
EuiFilterGroup
's responsive styles (#6983)
Deprecations
- Deprecated
EuiFilterSelectItem
; UseEuiSelectable
instead (#6982)
CSS-in-JS conversions
- Converted
EuiFilterSelectItem
to Emotion (#6982) - Removed
.euiFilterSelect__items
CSS; UseEuiSelectable
instead (#6982) - Removed
.euiFilterSelect__note
and.euiFilterSelect__noteContent
CSS; UseEuiSelectableMessage
instead (#6982) - Added
focus.transparency
andfocus.backgroundColor
theme tokens (#6984)
v85.0.0
- Updated
EuiThemeProvider
to set an Emotion theme context that returns the values ofuseEuiTheme()
(#6913) - Added
size
prop toEuiStepsHorizontal
, defaulting to the previous size ofm
(#6928) - Added new
s
sizing toEuiStepsHorizontal
(#6928) - Added
at
andkey
icon glyphs. (#6934) - Added a new
cloneElementWithCss
Emotion utility (#6939) - Updated
EuiPopover
to allow consumer control of allfocusTrapProps
(#6955)
Bug fixes
- Fixed
EuiDataGrid
height calculation bug when browser zoom levels are not 100% (#6895) - Fixed
EuiTab
not correctly passing selection color state toprepend
andappend
children (#6938) - Fixed
EuiInputPopover
to allow consumer control of its focus trap viafocusTrapProps
(#6955)
Breaking changes
EuiProvider
will no longer render multiple or duplicate nested instances of itself. If a nestedEuiProvider
is detected, that instance will return early without further processing, and will warn if configured to do so viasetEuiDevProviderWarning
. For nested theming, useEuiThemeProvider
instead. (#6949)- Removed
onTrapDeactivation
prop fromEuiPopover
. UsefocusTrapProps.onDeactivation
instead (#6955)
CSS-in-JS conversions
- Converted
EuiFilterGroup
andEuiFilterButton
to Emotion; Removed styles attached to.euiFilterGroup__popoverPanel
(#6957)