Repository navigation
v123.4.0
@elastic/eslint-plugin-eui v4.0.0
- Updated
@elastic/eui/no-deprecated-icon-aliasesto no longer report removed icon names.@elastic/eui/no-removed-iconsreports them instead (#10269) - Updated
@elastic/eui/no-deprecated-icon-aliasesand@elastic/eui/no-removed-iconsto check both branches of? :, operands of&&,||and??,iconTypekeys in object literals, and*IconTypeprops on any component (#10269)
Breaking changes
- Added new
@elastic/eui/no-removed-iconsrule that reports icon names removed from EUI, which render as a broken image, and autofixes them to their replacements. It's anerrorin the recommended config, so removed names thatno-deprecated-icon-aliasesreported as warnings now fail lint (#10269)
@elastic/eui v123.4.0
- Added the
productNightshifticon. (#10256) - Added
showMaximizeButtonandonMaximizeChangetoEuiFlyout'sflyoutMenuProps, for a menu button that maximizes the flyout to the full width of its container (#10242) - Added
setFlyoutMaximizedto the flyout manager store returned bygetFlyoutManagerStore, to maximize or restore a main flyout that setsflyoutMenuProps.showMaximizeButton(#10242) - Moved
colorPaletteand theeuiPalette*functions to@elastic/eui-theme-common, making them individually importable without loading@elastic/eui. They are re-exported from@elastic/eui.@elastic/eui-theme-borealisnow initializes the global vis color store on import, andEuiVisColorStore.getInstance()throws a descriptive error when accessed before any theme package initialized it. (#10247)
Bug fixes
- Fixed
EuiAvatarcutting custominitialsand single-wordnameinitials in the middle of a character. Initials are now counted and truncated by grapheme, so two emoji with skin tone modifiers, or a letter followed by an emoji, render correctly (#10272) - Fixed underline spacing for
EuiLinkand links withinEuiTextat small font sizes (#10248) - Fixed resizable main flyouts in the flyout system switching to stacked layout mode when a child flyout opens or the container narrows after the main flyout was resized wider. The main flyout now shrinks to the largest width that fits beside the child, and returns to the width the user dragged it to once there is room again. (#10250)
- Fixed
EuiFlyoutwithtype="push"not returning focus to the trigger element when it closes (#10235)
Accessibility
- Fixed
EuiRangeannouncing its value twice to screen readers whenshowValueis set (#10271)
Dependency updates
- Updated
lodashto v4.18.1 (#10265)
@elastic/eui-theme-borealis v8.2.0
- Initialize the global vis color store with its default vis colors on import, so the palette functions in
@elastic/eui-theme-commonwork without loading@elastic/eui(#10247)
@elastic/eui-theme-common v10.2.0
- Added
colorPaletteand theeuiPalette*functions (moved from@elastic/eui), making the color palettes importable without loading@elastic/eui(#10247) - Updated
EuiVisColorStore.getInstance()to be callable without arguments once initialized; it now throws a descriptive error when accessed before any theme package initialized it (#10247)
Dependency updates
- Updated
lodashto v4.18.1 (#10265)
@elastic/eui-test-helpers v2.3.0
- Added
EuiTabsObjectwithtabs,getTabs(),tab(label),select(label)andgetSelected(), coveringEuiTabsandEuiTabbedContent(#10249) - Added
EuiMarkdownEditorObjectwithtextArea,preview,setValue(text),getValue(),isPreviewing()andtogglePreview()(#10260) - Added
EuiCardObjectwithselectButton,getTitle(),getDescription(),click(),isSelected()andtoggleSelected()(#10266)