Skip to content

EuiDescriptionList compressed fix - #10302

Open
JoseLuisGJ wants to merge 10 commits into
elastic:mainfrom
JoseLuisGJ:fix-EuiDescriptionList-compressed
Open

JoseLuisGJ wants to merge 10 commits into
elastic:mainfrom
JoseLuisGJ:fix-EuiDescriptionList-compressed

Conversation

@JoseLuisGJ

@JoseLuisGJ JoseLuisGJ commented Nov 13, 2026 •

Copy link
Copy Markdown
Member
  • What: Fixed mismatched title and description font sizes in compressed column and row description lists.
  • Why: Both should have the same size, consistent with the design intent. Related issue ticket Inconsistent font sizes in EuiDescriptionList with compressed and column props #10228
  • How: Use the regular text size for the text-styled side of compressed columns and rows. This also covers reversed text and expanded responsive columns.

API Changes

component / parent prop / child change description
None — — No public API changes

Screenshots

Column

CleanShot 2026-11-13 at 11 30 12@2x

Row

CleanShot 2026-11-13 at 11 31 31@2x

Impact Assessment

Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.

  • 🔴 Breaking changes — No public API changes.
  • 💅 Visual changes — The text-styled side of compressed column lists is larger; consumers with style overrides may be affected. Usage impact has not been measured.
  • 🧪 Test impact — Affected description-list snapshots were updated. Consumers may need to update snapshots.
  • 🔧 Hard to integrate — No substantial integration changes anticipated; Kibana testing remains outstanding.

Impact level: 🟢 Low

Release Readiness

  • Documentation: EuiDescriptionList — no API documentation changes anticipated.
  • Figma: Design alignment described in the bug report; link not provided.
  • Migration guide: No migration steps anticipated.
  • Adoption plan (new features): Not applicable.

QA instructions for reviewer

  • Open the EuiDescriptionList column story and enable compressed.
  • Confirm title and description font sizes match for normal and reversed text.
  • Check responsiveColumn at wide and narrow viewport widths; confirm row behavior remains unchanged when collapsed.
  • Check the change in Kibana.

Validation performed:

  • yarn workspace @elastic/eui test-unit src/components/description_list --runInBand — passed, 48 tests.
  • yarn workspace @elastic/eui tsc --noEmit — passed.
  • Targeted ESLint — passed with one existing warning.
  • Visual regression tests and Kibana testing were not run.

Checklist before marking Ready for Review

  • Filled out all sections above
  • QA: Tested light/dark modes, high contrast, mobile, Chrome/Safari/Edge/Firefox, keyboard-only, screen reader
  • QA: Tested in CodeSandbox and Kibana
  • QA: Tested docs changes — no docs changes.
  • Tests: Added/updated Jest, Cypress, and VRT — Jest updated; Cypress and VRT not run.
  • Changelog: Added changelog entry
  • Breaking changes: Added breaking change label (if applicable)

Reviewer checklist

  • Approved Impact Assessment — Acceptable to merge given the consumer impact.
  • Approved Release Readiness — Docs, Figma, and migration info are sufficient to ship.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.41%
keyboard shortcuts mobile 13.90%

@JoseLuisGJ
JoseLuisGJ marked this pull request as ready for review November 13, 2026 10:33
@JoseLuisGJ
JoseLuisGJ requested a review from a team as a code owner November 13, 2026 10:33
@JoseLuisGJ
JoseLuisGJ requested review from MichaelMarcialis and a balanced review from Copilot November 13, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description changed, now the PR aims to fix both, column and row layout.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.41%
keyboard shortcuts mobile 13.90%

@weronikaolejniczak weronikaolejniczak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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!

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.44%
keyboard shortcuts mobile 10.09%

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.44%
keyboard shortcuts mobile 10.09%

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.44%
keyboard shortcuts mobile 10.09%

@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

History

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown

📷 2 visual difference(s) found

Look 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 review

euidatagrid (2 differences)

StoryDiff %BeforeAfterDiff
keyboard shortcuts desktop 3.44%
keyboard shortcuts mobile 10.09%

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants