Upgrade EUI to v88.1.0#165047
Conversation
- note: for some reason, `getDOMNode()` is returning an array instead of a single element - appears to be a bug with Enzyme
| <EuiDescriptionList | ||
| type="responsiveColumn" | ||
| gutterSize="s" | ||
| rowGutterSize="s" |
There was a problem hiding this comment.
We can technically remove these props completely now that rowGutterSize defaults to "s".
| rowGutterSize="s" |
@kyrspl what was the intention of the breaking EuiDescriptionList gutter size change? Do you want all downstream instances in Kibana to adopt the new default gutter size, or should we update previous usages to set <EuiDescriptionList rowGutterSize="m"> to preserve the old gutter size?
There was a problem hiding this comment.
Visual preference - if we think it's going to break a lot of instances let's switch it to m and we can review later.
For clarity, why did you write size="m"?
There was a problem hiding this comment.
@kyrspl and I discussed this at the beginning of my workday Tuesday (Aug 29). We decided it would be better to update the EuiDescriptionList props rowGutterSize and columnGutterSize to have default m. I'll update the component in EUI, issue a new pull request, then make a minor point release and fold it into this Kibana upgrade.
That way we're keeping the default the same as was prior for row margins, and honoring the local Kibana overrides by passing in s.
/cc @cee-chen
UPDATE:
The whole EUI team discussed this item and the ramifications of reverting a conscious change. We are moving ahead with the breaking change as is, with the default gutter as s. I'll update the Kibana code to handle this breaking change and include screen shots as I can for product teams to review.
|
Pinging @elastic/eui-team (EUI) |
src/plugins/data/public/shard_failure_modal/shard_failure_description.tsx
Show resolved
Hide resolved
|
Pinging @elastic/uptime (Team:uptime) |
| > | ||
| <dt | ||
| class="euiDescriptionList__title emotion-euiDescriptionList__title-row-m-normal" | ||
| class="euiDescriptionList__title emotion-euiDescriptionList__title-row-normal-s" |
There was a problem hiding this comment.
This seems to be a direct consequence of the changed default size, right? Do we want to specify size m explicitly in the corresponding React element call so it doesn't change?
There was a problem hiding this comment.
@weltenwort Correct, the snapshots updated because the default size was changed to s. This was a conscious decision by EUI to reduce the margin between rows on EuiDescriptionList. If there are layouts you want to retain the larger margin, they can be overrode by passing rowGutterSize="m" into the component.
- goal is to reduce churn whenever eui theme updates, and also prefer RTL over enzyme
…-ref HEAD~1..HEAD --fix'
peteharverson
left a comment
There was a problem hiding this comment.
Tested ML changes and LGTM
|
Hey all - just want to give a heads up, I'm not sure what's going on with the failing serverless tests and I'm pretty sure they're not related to EUI. We'll continue merging main in hopes that they get fixed in main, and talk to KibanaOps if it's not looking to improve, but until then, please ignore any serverless CI failures and focus on |
tomsonpl
left a comment
There was a problem hiding this comment.
LGTM, Management views look ok to me :) But let's wait for a second pair of eyes too 👍
angorayc
left a comment
There was a problem hiding this comment.
Tested locally, LGTM, thank you!
weltenwort
left a comment
There was a problem hiding this comment.
monitoring plugin changes LGTM
|
@elastic/security-threat-hunting-investigations @elastic/kibana-visualizations @elastic/kibana-presentation @elastic/security-defend-workflows - last call for reviews/QA checks, we'll be asking KibanaOps to admin merge by EOD. As always, however, you're welcome to ping us later for help if you run into issues! |
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @1Copenut |
…ails flyout (#165937) ## Summary This PR fixes a UX bug that was a result of EUI upgrade where the description list contents were misaligned. The `EuiDescriptionList` component should take a set of column widths and column and row gutter sizes to allow for adequate spacing between text elements. **before**  **with this fix**  see /pull/165047 ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [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)
PR change summary
v87.2.0⏩v88.1.0EuiDescriptionList.Description list
columnWidthspropThis PR introduces a new
columnWidthsprop and removes several Kibana instances of custom CSS overrides to title/description column widths.The primary motivation behind this is not just to reduce custom CSS, but also because v88.0.0 introduced an underlying CSS change of
columndescription lists to usingdisplay: gridCSS. The new prop allows us to support existing description list custom widths while not requiring Kibana developers to understand or write grid CSS (except for 1 or two scenarios aroundmax-width).Description list gutter size changes
The prop
gutterSizehas been renamed torowGutterSizeand the default size is nowsinstead ofm.The change to
sfrommmeans there is an expected smaller gap between list items (see below screenshots):Current

EuiDescriptionListwith defaultrowGutterSize="s"Prior

EuiDescriptionListwith defaultgutterSize="m"If Kibana teams prefer to keep the previous
mgutter for their instances ofEuiDescriptionList, you have a couple of options:rowGutterSize="m"yourselves manually88.1.0font.defaultUnitstheme token. EUI component font sizes default toremunits - this token allows consumers to configure this topxorem(#7133)EuiDescriptionListwith newcolumnWidthsprop (#7146)Bug fixes
EuiDataGrid's keyboard shortcuts popover display (#7146)CSS-in-JS conversions
useEuiFontSize()'smeasurementoption tounitfor clarity (#7133)88.0.0EuiDescriptionListwith a newcolumnGutterSizeprop (#7062)Deprecations
EuiSuggest. We recommend usingEuiSelectableorEuiComboBoxinstead (#7122)EuiControlBar. We recommend usingEuiBottomBarinstead (#7122)EuiColorStops. We recommend copying the component to your application if necessary (#7122)EuiNotificationEvent. We recommend copying the component to your application if necessary (#7122)Breaking changes
EuiDescriptionList'sgutterSizeprop torowGutterSize(#7062)EuiDescriptionList'srowGutterSizeprop now defaults to a size ofs(was previouslym) (#7062)Accessibility
EuiDescriptionListTitles to meet WCAG color contrast requirements (#7062)CSS-in-JS conversions
EuiKeyPadMenuItemto Emotion; Removed$euiKeyPadMenuSizeand$euiKeyPadMenuMarginSize(#7118)