Repository navigation
[EuiSplitButton] Update disabled style - #9986
Conversation
c3b26c0 to
c009241
Compare
📷 8 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 revieweuisplitbutton (8 differences)
|
|
buildkite test this |
There was a problem hiding this comment.
🟢 Approval recommended
The changes align with the stated styling goal and the remaining feedback is limited to minor clarity/simplification opportunities.
Pull request overview
Updates EuiSplitButton styling so the container-level disabled presentation only applies when both split actions are disabled, aligning with the intended “single disabled action should not disable the whole control” behavior.
Changes:
- Added a combined
:has()selector to target the “both actions disabled” state and applied container disabled background only in that state. - Updated border/high-contrast styling logic to key off the “both disabled” condition (instead of “either disabled”).
- Added an upcoming changelog entry for the
EuiSplitButtondisabled style update.
File summaries
| File | Description |
|---|---|
| packages/eui/src/components/button/split_button/split_button.styles.ts | Adjusts disabled-state selectors so container/divider styling only switches to disabled when both actions are disabled. |
| packages/eui/changelogs/upcoming/9986.md | Documents the EuiSplitButton disabled style update in the upcoming changelog. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
📷 8 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 revieweuisplitbutton (8 differences)
|
📷 8 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 revieweuisplitbutton (8 differences)
|
|
buildkite test this |
weronikaolejniczak
left a comment
There was a problem hiding this comment.
LGTM 🟢 Thanks for the change, Lene!
💚 Build Succeeded
History
cc @mgadewoll |
💚 Build Succeeded
History
cc @mgadewoll |
Part of elastic/eui-private#766 Staged commits cherry-picked from: - #287310 - #288418 - #235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in #288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from #287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
Part of elastic/eui-private#766 Staged commits cherry-picked from: - elastic#287310 - elastic#288418 - elastic#235177 ## Dependency updates `@elastic/eui` - 120.0.0 ⏩ 121.0.0 `@elastic/eui-test-helpers` - 1.5.0-snapshot ⏩ 1.6.0 > [!WARNING] > `EuiHeaderLogo`: `iconType` is removed and `children` text is no longer rendered. Use `logoType` (`glyph` or `horizontal`). Staged in elastic#288418. Also in this PR: - `EuiButtonGroup` Children API migrations and snapshot updates from elastic#287310 - New i18n token `euiTimeWindowButtons.label` (`Time window controls`) ## Package updates ### `@elastic/eui` [v121.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `isDisabled`, `isLoading`, `href`, and `target` props to `EuiFlyoutMenuAction`. ([elastic#9992](elastic/eui#9992)) - Updated `onClick` on `EuiFlyoutMenuAction` to be optional, so actions can navigate via `href` alone. ([elastic#9992](elastic/eui#9992)) - Added `tableSparkles` icon ([elastic#9987](elastic/eui#9987)) - Updated styles of `EuiFilterButton` ([elastic#9961](elastic/eui#9961)) - Updated `EuiFilterGroup` ([elastic#9961](elastic/eui#9961)) - Updated styles - Added `display` prop (values: `'regular' | 'highlighted'`) to render different visual toggle variants - Added `showDividers` prop to optionally render dividers between group children - Updated `EuiSplitButton` disabled styles ([elastic#9986](elastic/eui#9986)) - Updated styles on `EuiButtonGroup` with legacy Options API ([elastic#9953](elastic/eui#9953)) - Updated usages of `EuiButtonGroup` in `EuiDataGrid`'s display selector and column sorting to use the Children API ([elastic#9953](elastic/eui#9953)) - Updated `EuiSuperDatePicker`'s time window buttons to use `EuiButtonGroup` with Children API ([elastic#9953](elastic/eui#9953)) **Bug fixes** - Fixed `EuiPopoverTitle` and `EuiPopoverFooter` backgrounds not following the popover panel's corner radius ([elastic#9985](elastic/eui#9985)) - Fixed `EuiFlyoutBody` content becoming inaccessible at short viewport heights ([elastic#9944](elastic/eui#9944)) **Deprecations** - Deprecated `options` on `EuiButtonGroup` - Use the new Children API via `children` prop instead. ([elastic#9953](elastic/eui#9953)) - Deprecated `color` on `EuiButtonGroup` - `color` will be fixed to `text` in the future. ([elastic#9953](elastic/eui#9953)) - Deprecated `buttonSize="compressed"` on `EuiButtonGroup` - Renders as `buttonSize="s"` instead. ([elastic#9953](elastic/eui#9953)) **Breaking changes** - Added a new `logoType` prop to `EuiHeaderLogo` to render either the `glyph` or `horizontal` Elastic logo. The `iconType` prop has been removed, and `children` text content is no longer rendered. ([elastic#9875](elastic/eui#9875)) ### `@elastic/eui-test-helpers` [v1.6.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiPopoverObject`, a Playwright Component Object for `EuiPopover` ([elastic#9993](elastic/eui#9993)) - Added `EuiFlyoutObject`, a Playwright Component Object for `EuiFlyout` ([elastic#9994](elastic/eui#9994)) - Added `EuiModalObject`, a Playwright Component Object for `EuiModal`/`EuiConfirmModal` ([elastic#10002](elastic/eui#10002)) - Added `EuiAccordionObject`, a Playwright Component Object for `EuiAccordion` ([elastic#10003](elastic/eui#10003)) **Bug fixes** - Fixed `EuiComboBoxObject.clear()` and `setSelectedOptions()` timing out on `singleSelection` combo boxes, whose pills have no close button ([elastic#9998](elastic/eui#9998)) --------- Co-authored-by: Lene Gadewoll <[email protected]> Co-authored-by: JoseLuisGJ <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
























Summary
EuiSplitButtondisabled styles, inverting the container behavior.EuiSplitButtonto invert the disabled style when only a single action is disabled.API Changes
⚪ No API changes
Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 Low
🧪 The changes have been run in Kibana CI (🟢 build)
Required Kibana changes: commits added here.
Release Readiness
QA instructions for reviewer
Checklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist