Repository navigation
Form row label append default text style - #10067
Conversation
📷 4 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 revieweuiform (4 differences)
|
Kibana Regression Integration TestStatus: 💔 Kibana CI failed Please check Kibana CI logs for details. |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
LGTM but before we continue we need to prep the changes necessary in Kibana
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Custom-node attributes are dropped, the public type change contradicts the stated scope, and the changelog advertises a nonexistent public component.
Review effort: Balanced
Findings: 2
Open (3)
What changed in this PR
Adds default extra-small styling for EuiFormRow.labelAppend while preserving custom React content.
Changes:
- Adds the internal
EuiFormLabelAppendwrapper and styles. - Updates form-row integration, documentation, stories, and tests.
- Adds a changelog entry.
| File | Description |
|---|---|
row.mdx |
Simplifies the custom-link example. |
form_row.tsx |
Integrates the new append wrapper. |
form_row.test.tsx.snap |
Updates form-row markup snapshot. |
form_label_append/index.ts |
Adds internal exports. |
form_label_append.tsx |
Implements conditional text rendering. |
form_label_append.test.tsx |
Tests string and custom content. |
form_label_append.styles.ts |
Adds subdued extra-small styling. |
form_label_append.stories.tsx |
Adds component stories. |
form_label_append.test.tsx.snap |
Captures string markup. |
10067.md |
Adds the release note. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
💚 Build Succeeded
History
cc @JoseLuisGJ |
💚 Build Succeeded
History
cc @JoseLuisGJ |
|
ℹ️ The changes were run in Kibana CI 🟢 |
## Dependency updates `@elastic/eui` - v123.0.0 ⏩ v123.1.0 ## Package updates ### `@elastic/eui` [v123.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Removed the left color highlight from `EuiCallOut` ([elastic#10109](elastic/eui#10109)) - Updated Flyout menu height to 50px ([elastic#10103](elastic/eui#10103)) - Added new icons: `chartMix`, `chartWaffle`, `clipboardWarning`, `clockUp`, `emergencyLight`, `productCanvas`, `productElasticAgent`, `productFleet`, `productLens`, `puzzlePiece`, `shield` ([elastic#10111](elastic/eui#10111)) - Added `hasAriaDisabled` prop on `EuiSelectableListItem` and `type EuiSelectableOption` ([elastic#10090](elastic/eui#10090)) - Added refs for `EuiFlyoutHeader`, `EuiFlyoutFooter`, and the outer `EuiFlyout` scroll container. ([elastic#10105](elastic/eui#10105)) - Corrected `EuiFlyoutHeaderProps`, `EuiFlyoutFooterProps`, and `EuiFlyoutBodyProps` to describe component props instead of component types. ([elastic#10105](elastic/eui#10105)) - Updated `EuiFormRow`'s `labelAppend` to render string content with an extra-small, subdued text style. ([elastic#10067](elastic/eui#10067)) **Bug fixes** - Fixed a bug on `EuiSelectable` with `searchable={true}` that could result in an infinite loop if all search results are disabled ([elastic#10090](elastic/eui#10090)) - Fixed `EuiSuperSelect` omitting the currently selected value from its accessible name when an `aria-label` or `aria-labelledby` was passed. External labels are now combined with the selected value instead of overriding it ([elastic#10039](elastic/eui#10039)) --------- Co-authored-by: Ángeles Martínez Barrio <[email protected]> Co-authored-by: Alexey Antonov <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Lene Gadewoll <[email protected]>














Summary
EuiFormRow'slabelAppendnow has a default text style (xs + subdued) instead of inheriting the large, high-contrast body text.labelAppendprop #10021. StringlabelAppendvalues (e.g. “Optional”) currently render at 16px / primary text, so product teams keep wrapping or overriding them by hand.EuiFormLabelAppendwrapper used byEuiFormRow..euiFormLabelAppendspan witheuiFontSize(..., 'xs')andcolors.textSubdued.EuiText size="xs", so custom elements still work and pick up the smaller size without the subdued text color.labelAppendremains typed asany— tightening that type is out of scope here.EuiFormLabelAppendis not exported from the public@elastic/euiindex; it is a form-row subcomponent (Storybook + internal use only).API Changes
xs+textSubduedinstead of inherited 16px / primary textScreenshots
labelAppendat 16px / blackImpact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
labelAppendstill accepts strings or custom React nodes.labelAppendwill shrink from default body text (16px / primary) toxs+ subdued. Consumers who already wrap strings inEuiText size="xs"(or similar) may look slightly smaller / double-wrapped and can drop those overrides. Custom nodes (e.g. the docsEuiText+EuiLinkpattern) still render; they now also inheritEuiText size="xs".form_row, newform_label_append). Downstream snapshots that assertlabelAppendHTML will now see a<span class="euiFormLabelAppend euiFormRow__labelAppend">around string content.EuiText size="xs"/ color overrides around stringlabelAppendusages.Impact level: 🟡 Moderate
Release Readiness
Forms/EuiForm/EuiFormRow(labelAppend) andForms/EuiForm/EuiFormRow/Subcomponents/EuiFormLabelAppend. Existing docs page: https://eui.elastic.co/docs/components/forms/layouts/row/Figma:N/A — style alignment requested in [EuiFormRow] Define a default text style to thelabelAppendprop #10021 (@joana-cps); no new Figma componentlabelAppendno longer needs a manualEuiText size="xs"/ subdued color wrapper. Custom elements can still be passed through. If a consumer already wraps a string inEuiText, they can pass the string directly.Adoption plan (new features):N/A — default style fix, not a new consumer-facing featureQA instructions for reviewer
labelAppendto a string (e.g.Optional) and confirm it renders xs and subdued, not 16px / primary.<label>)..euiFormLabelAppend+ subdued xs text..euiFormLabelAppendspan); size is xs viaEuiText.displayvariants ofEuiFormRow— append alignment should stay on the label row.labelAppendis still outside the<label>, so it is not announced as part of the field name (same as before).Checklist before marking Ready for Review
form_label_append+form_rowsnapshots).CypressVRTpackages/eui/changelogs/upcoming/10067.md)Breaking changes: Addedbreaking changelabel (if applicable)Reviewer checklist