Repository navigation
EuiDescriptionList compressed fix - #10302
JoseLuisGJ wants to merge 10 commits into
Conversation
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
…s and update related tests
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved typography issues leave keyboard-shortcut list titles and descriptions at inconsistent sizes and enlarge compressed row text despite the stated intent to preserve row behavior.
2 open issues
What changed in this PR
This PR addresses #10228 by aligning title and description font sizes in compressed EuiDescriptionList layouts within EUI’s shared component library.
Changes:
- Uses regular text sizing for the text-styled side of compressed row and column lists, including reversed text.
- Adds font-size assertions for row, column, responsive, and inline layouts.
- Updates affected snapshots and adds a changelog entry.
| File | Description |
|---|---|
packages/eui/src/components/description_list/description_list.test.tsx |
Adds typography coverage across layouts and text styles. |
packages/eui/src/components/description_list/description_list_title.tsx |
Uses regular sizing for compressed reversed titles. |
packages/eui/src/components/description_list/description_list_title.test.tsx |
Updates reversed-title font-size expectations. |
packages/eui/src/components/description_list/description_list_title.styles.ts |
Removes the separate compressed reverse style. |
packages/eui/src/components/description_list/description_list_description.tsx |
Uses regular sizing for compressed normal descriptions. |
packages/eui/src/components/description_list/description_list_description.test.tsx |
Updates description font-size expectations. |
packages/eui/src/components/description_list/description_list_description.styles.ts |
Removes the separate compressed normal style. |
packages/eui/src/components/description_list/__snapshots__/description_list_title.test.tsx.snap |
Refreshes reversed-title style classes. |
packages/eui/src/components/description_list/__snapshots__/description_list_description.test.tsx.snap |
Refreshes compressed-description style classes. |
packages/eui/src/components/datagrid/controls/__snapshots__/keyboard_shortcuts.test.tsx.snap |
Updates classes in the keyboard-shortcuts consumer snapshot. |
packages/eui/changelogs/upcoming/10302.md |
Documents the compressed row and column font-size fix. |
Review effort: Balanced
| textStyle === 'reverse' | ||
| ? styles.fontStyles.compressed | ||
| : styles.fontStyles.compressedNormal, | ||
| : styles.fontStyles.normal, |
There was a problem hiding this comment.
Description changed, now the PR aims to fix both, column and row layout.
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
… keyboard shortcuts snapshot
weronikaolejniczak
left a comment
There was a problem hiding this comment.
@JoseLuisGJ this fixes the standalone lists 👍 but the DataGrid keyboard shortcuts popover now has mismatched sizes. It wraps the list in EuiText size="xs", so the titles stay at 12px while the descriptions go up to 14px.
Could you switch that wrapper to size="s"? The VRT baselines will need updating.
We might also need Kibana regression tests and I bet a prep commit with snapshot updates 😄 If you need help with that, lmk!
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
💔 Build Failed
Failed CI StepsHistory
|
📷 2 visual difference(s) foundLook at the visual diff below. If everything is expected, run Approve visual changes to update baselines, re-run the job or make appropriate fixes. See the visual regression testing wiki for more information. Expand to revieweuidatagrid (2 differences)
|
💚 Build Succeeded
History
|







EuiDescriptionListwithcompressedandcolumnprops #10228API Changes
Screenshots
Column
Row
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 Low
Release Readiness
Adoption plan (new features): Not applicable.QA instructions for reviewer
EuiDescriptionListcolumn story and enablecompressed.responsiveColumnat wide and narrow viewport widths; confirm row behavior remains unchanged when collapsed.Validation performed:
yarn workspace @elastic/eui test-unit src/components/description_list --runInBand— passed, 48 tests.yarn workspace @elastic/eui tsc --noEmit— passed.Checklist before marking Ready for Review
QA: Tested docs changes — no docs changes.Breaking changes: Addedbreaking changelabel (if applicable)Reviewer checklist