Releases: elastic/eui
Releases Β· elastic/eui
v65.0.0
65.0.0
- Added
anchorProps
to allow passing more props to the anchoring wrapper inEuiToolTip
andEuiBetaBadge
(#6110) - Added an empty shade background color to
hollow
styleEuiBetaBadge
(#6110) - Changed design of select button in
selectable
EuiCard
s (#6110) - Updated button
ghost
colors to becolorMode = 'dark'
themedtext
buttons (#6150) - Renamed
ButtonColor
andButtonSize
types to prefixed versionsEuiButtonColor
andEuiButtonSize
(#6150)
Deprecations
- Deprecated
ghost
color forEuiButton
,EuiButtonIcon
,EuiButtonEmpty
(#6150)
Breaking changes
- Removed
EuiButtonIconColor
andEuiButtonEmptyColor
types, useEuiButtonIconProps['color']
andEuiButtonEmptyProps['color']
instead (#6150) - Removed support for
ghost
color fromEuiButtonGroup
(#6150)
CSS-in-JS conversions
- Removed
euiHasBetaBadge()
Sass mixin (#6110) - Converted
EuiCard
,EuiCheckableCard
to Emotion, removed$euiCheckableCardPadding
,$euiCardSpacing
,$euiCardBottomNodeHeight
,$euiCardSelectButtonBorders
,$euiCardSelectButtonBackgrounds
, and$euiCardPaddingModifiers
(#6110) - Converted
EuiButton
to Emotion (#6150) - Converted color styles of
EuiButtonIcon
,EuiButtonEmpty
,EuiButtonGroup
(#6150)
v64.0.1
Bug fixes
- Fixed
CollapsedItemActions
ref callback not accounting fornull
value (#6145)
CSS-in-JS conversions
v64.0.0
- Added
onPositionChange
callback prop toEuiPopover
for when the popover positon changes (#6087) - Added
isDisabled
prop toEuiAccordion
(#6095) - Added
css
prop toCommonProps
interface (#6118) - Added new
useIsWithinMaxBreakpoint
anduseIsWithinMinBreakpoint
service hooks (#6119)
Bug fixes
- Fixed the
steps
prop type foruseEuiTour
to not requireonFinish
(#6087) - Fixed JS breakpoint hooks (
useCurrentEuiBreakpoint
,useIsWithinBreakpoints
, andeuiBreakpoint
) to correctly handle custom theme breakpoint keys (#6111) - Fixed
:first-child/:nth-child
console warnings for consumers not passing in acache
toEuiProvider
(#6126) - Fixed
EuiScreenReaderLive
double announcements on VO whenfocusRegionOnTextChange
is not set (#6133) - Fixed
onBlur
andonFocus
handlers fromEuiDatePickerRange
being incorrectly applied to wrapping element rather than the start/end control datepickers. (#6136) - Fixed missing
data-fixed-headers
property in some layout configurations usingEuiPageTemplate
. (#6140) - Fixed
EuiAspectRatio
sometimes incorrectly inheriting its height from parent containers as opposed to from its aspect ratio (#6141) - Fixed
EuiAspectRatio
to allow customstyle
s to be passed by consumers (#6141) - Fixed
eui.d.ts
containing@testing-library
type definitions (#6142)
Breaking changes
- Removed
getBreakpoint
. UseuseCurrentEuiBreakpoint
instead (#6119) - Removed
BREAKPOINTS
andBREAKPOINT_KEYS
. UseeuiTheme.breakpoint
instead (#6119) - Removed
isWithinBreakpoints
. UseuseIsWithinBreakpoints
instead (#6119) - Removed
isWithinMaxBreakpoint
. UseuseIsWithinMaxBreakpoint
instead (#6119) - Removed
isWithinMinBreakpoint
. UseuseIsWithinMinBreakpoint
instead (#6119) EuiFlyout
now only accepts a named breakpoint size for itspushMinBreakpoint
prop (#6119)EuiCollapsibleNav
now only accepts a named breakpoint size for itsdockedBreakpoint
prop (#6119)@emotion/cache
is now a required peer dependency, alongside@emotion/react
(#6126)
CSS-in-JS conversions
- Converted
EuiTour
to Emotion (#6087)
v63.0.1
v63.0.0
- Added new
EuiPageTemplate
namespaced component that uses context to pass through props (#5768) - Added
EuiPageSection
component for easier section stacking (#5768) - Added
EuiPageSidebar
component that is an upgrade toEuiPageSideBar
(#5768) - Extended
bottomBorder
prop to add'extended'
onEuiPageHeader
(#5768) - Added
paddingSize
andrestrictWidth
directly onEuiPageHeaderContent
(#5768) - Added
data-fixed-headers
attribute to<body>
with the count of fixedEuiHeader
components (#5768) - Extended
usePortal
prop onEuiBottomBar
to acceptEuiPortalProps
(#5768) - Increased
paddingSize
support byEuiPage
forxl
andxs
sizes (#5768) - Moved
restrictWidth
defaulttrue
style tostyle
attribute onEuiPage
andEuiPageBody
(#5768) - Added optional
height
parameter toeuiYScroll()
,useEuiYScroll
,euiYScrollWithShadows()
, anduseEuiYScrollWithShadows
(#5768) - Added
repositionOnScroll
directly toEuiPopover
rendered by mobile version ofEuiHeaderLinks
(#5768)
Bug fixes
- Fixed missing render of
breadcrumbs
onEuiPageHeader
whenalignItems = 'top'
(#5768) - Fixed
logicalStyle()
to return the same value type as was passed in (instead of converting to string) (#5768)
Deprecations
- Deprecated the old
EuiPageTemplate
component and renamed toEuiPageTemplate_Deprecated
(#5768) - Deprecated
EuiPageContent
andEuiPageContentBody
in favor of newEuiPageSection
(#5768) - Deprecated
EuiPageContent
and renamed toEuiPageContent_Deprecated
(#5768) - Deprecated
EuiPageContentBody
and renamed toEuiPageContentBody_Deprecated
(#5768) - Deprecated
EuiPageContentHeader
and renamed toEuiPageContentHeader_Deprecated
(#5768) - Deprecated
EuiPageContentHeaderSection
and renamed toEuiPageContentHeaderSection_Deprecated
(#5768) - Deprecated
EuiPageSideBar
and renamed toEuiPageSideBar_Deprecated
(#5768)
Breaking changes
- Removed nested
EuiPageHeader
styles when a child ofEuiPageBody
(#5768) - Changed default
paddingSize
ofEuiPage
fromm
tonone
(#5768)
CSS-in-JS conversion
v62.2.0
- The
EuiDataGrid
'srowHeightOptions
now contain an optionalscrollAnchorRow
property, which enables vertical layout shift compensation when renderingauto
-sized rows. (#6070) - Added new React Testing Library EuiToolTip helpers,
waitForEuiToolTipVisible
andwaitForEuiToolTipClose
(#6106)
Bug fixes
- Fixed EuiPortal changes causing rerender issues in test environments (#6105)
v62.1.0
- Updated
tokenFile
,tokenSymbol
andtokenRepo
default shapes tosquare
instead ofrectangle
(#6067) - Updated
EuiGlobalToastList
to be a function component (#6068) - Added new
useCurrentEuiBreakpoint
hook, which returns the current browser window width as a named EUI breakpoint size (e.g.xl
) (#6079)
Bug fixes
- Fixed unintentional subcomponent remounting in
EuiCodeBlock
during rerenders (#6077) - Fixed
useIsWithinBreakpoints
hook not correctly respecting consumer theme breakpoint overrides (#6079)
CSS-in-JS conversions
- Converted
EuiBreadcrumbs
andEuiHeaderBreadcrumbs
to Emotion; removed$euiBreadcrumbSpacing
and$euiBreadcrumbTruncateWidth
(#5934) - Converted
EuiDescriptionList
to Emotion (#5971) - Converted
EuiToken
to Emotion (#6067) - Converted
EuiToast
,EuiGlobalToastList
, andEuiGlobalToastListItem
to Emotion (#6068) - Moved
.euiBody-hasPortalContent
styles that used to live in_portal.scss
to EmotionEuiGlobalStyles
(#6075)
v62.0.2
- Added new React Testing Library
ByDataTestSubj
utilities for targeting EUI'sdata-test-subj
attributes. These can be accessed by importing custom RTLrender
andscreen
utils from@elastic/eui/lib/test/rtl
. (#6091)
(#6091) - Added new React Testing Library EuiPopover helpers,
waitForEuiPopoverOpen
andwaitForEuiPopoverClose
(#6091)
Bug fixes
- Restored non-Emotion classNames to
EuiCommentEvent
's children (#6089)
v62.0.1
v62.0.0
- Updated
EuiText.img
styles to prevent images from growing full width (#5969) - Improved
EuiImage
'sallowFullScreen
screen reader experience (#5969) - Updated
EuiImage
's full screen mode to use thefullScreenExit
icon (#5969) - Updated
EuiPopover
'sdisplay
prop to accept any CSSdisplay
value (#5977) - Added
data-popover-open
attribute toEuiPopover
's panel (#5977) - Changed
EuiPopover
'sbox-shadow
tofilter
(#5977) - Added
logicalSizeCSS
andlogicalSizeStyle
for quickly producingwidth
andheight
styles (#5977) - Increased the opacity of the shadow color in dark mode (#5977)
- Improved screen reader accessibility for
EuiDataGrid
column headers (#6034) - Added
tokenMetricCounter
andtokenMetricGauge
toEuiToken
(#6064) - Removed the nested
aria-label
on theEuiAvatar
icon to simplify a11y (#6071) - Added
timelineAvatarAriaLabel
toEuiComment
(#6071)
Bug fixes
- Reverted the change
EuiCommentEvent.username
type fromReactNode
tostring
(#6071) - Fixed searchable single selection
EuiSelectable
s not correctly highlighting the checked option on initial render (#6072)
Breaking changes
- Updated
EuiImage.className
to be applied to theimg
instead of the parent wrapperfigure
and addedwrapperProps
prop so that consumers can apply props to thefigure
element (#5969) - Renamed
EuiPopover
'sdisplay
prop valueinlineBlock
toinline-block
(#5977) EuiPopover
: Removedfalse
as an option frominitialFocus
(#6044)- Renamed
timelineIcon
onEuiComment
totimelineAvatar
(#6071)
CSS-in-JS
- Converted
EuiImage
to Emotion (#5969) - Converted
EuiPopover
,EuiPopoverTitle
,EuiPopoverFooter
,EuiInputPopover
(#5977)
CSS-in-JS conversions