Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
939af31
refactor: update form layout styles
mgadewoll Jan 9, 2026
39b403f
refactor: inherit props in EuiFormAppendPrepend and EuiFormControlBut…
mgadewoll Jan 9, 2026
c253497
feat(EuiDatePickerRange): add iconSide
mgadewoll Jan 9, 2026
12f207a
refactor(superDatePicker): add icon on valid state, remove background…
mgadewoll Jan 9, 2026
3770ed2
refactor(buttonEmpty): remove background color transition
mgadewoll Jan 9, 2026
2672e28
test: update snapshots
mgadewoll Jan 9, 2026
b33ca4c
docs(storybook): update form control layout stories
mgadewoll Jan 9, 2026
c275d28
test(vrt): update reference images
mgadewoll Jan 9, 2026
db77598
refactor: update form autofill styles
mgadewoll Jan 13, 2026
a7bbf0d
docs(storybook): update custom drag handle examples
mgadewoll Jan 13, 2026
794ca94
refactor: ensure correct HCM styles for EuiFormControlButton in form …
mgadewoll Jan 13, 2026
dead8b2
docs(storybook): remove obsolete drag example
mgadewoll Jan 13, 2026
11ce2d7
chore: add changelogs
mgadewoll Jan 13, 2026
09358e2
refactor: revert strict button overrides of custom content append/pre…
mgadewoll Jan 14, 2026
43d3fc6
chore: update changelog
mgadewoll Jan 14, 2026
e12520c
fix: prevent empty array content from rendering append/prepend
mgadewoll Jan 14, 2026
cd52c39
docs(storybook): Ensure EuiFormAppend story renders append
mgadewoll Jan 15, 2026
56422e1
refactor: add missing readOnly button styles
mgadewoll Jan 15, 2026
e810e66
chore: rename selector variables
mgadewoll Jan 16, 2026
ea23162
chore: update changelog
mgadewoll Jan 16, 2026
053c953
refactor: update append/prepend spacing to s
mgadewoll Jan 19, 2026
e6c51e7
refactor: ensure expected readOnly styling for password fields
mgadewoll Jan 19, 2026
de7eb74
refactor: ensure custom content label text color is not overriden une…
mgadewoll Jan 19, 2026
8ff9754
refactor: prevent badge text color being overriden unexpectedly
mgadewoll Jan 19, 2026
aef8d36
test(vrt): udpate reference images
mgadewoll Jan 19, 2026
8afc8f5
refactor: apply conditional form label padding
mgadewoll Jan 19, 2026
9a55d71
styles: remove TODO comment
mgadewoll Jan 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/eui-theme-borealis/changelogs/upcoming/9305.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Breaking changes**

- Removed `components.superDatePickerBackgroundSuccees` token

5 changes: 0 additions & 5 deletions packages/eui-theme-borealis/src/variables/_components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,6 @@ const component_colors: _EuiThemeComponentColors = {

skeletonBackgroundSkeletonMiddleHighContrast: `rgba(${SEMANTIC_COLORS.shade100RGB}, 0.04)`,

superDatePickerBackgroundSuccees: computed(
([backgroundBaseSuccess]) => backgroundBaseSuccess,
['colors.backgroundBaseSuccess']
),

switchBackgroundOn: computed(
([backgroundFilledPrimary]) => backgroundFilledPrimary,
['colors.backgroundFilledPrimary']
Expand Down
4 changes: 4 additions & 0 deletions packages/eui-theme-common/changelogs/upcoming/9305.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Breaking changes**

- Removed types from `components.superDatePickerBackgroundSuccees` token

Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ export type _EuiThemeComponentColors = {

skeletonBackgroundSkeletonMiddleHighContrast: ColorModeSwitch;

superDatePickerBackgroundSuccees: ColorModeSwitch;

switchBackgroundOn: ColorModeSwitch;
switchBackgroundOff: ColorModeSwitch;
switchUncompressedBackgroundDisabled: ColorModeSwitch;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/eui/changelogs/upcoming/9305.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- Updated `EuiFormAppend`/`EuiFormPrepend` styling
- Updated `EuiFormAppend`/`EuiFormPrepend` to inherit `isDisabled` state from `EuiFormControlLayout`
- Updated `EuiFormControlLayout` hover, disabled and readonly styling
- Updated `EuiFormControlButton` to inherit `isDisabled`, `readOnly` and `isInvalid` states from `EuiFormControlLayout`
- Added `iconSide` prop on `EuiDatePickerRange`
- Updated `EuiSuperDatePicker` valid state styling
- Removed background color transition on `EuiButtonEmpty` (other button variants don't have a transition anymore either)

**Breaking changes**

- Removed `components.superDatePickerBackgroundSuccees` token

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const euiNotificationBadgeStyles = (euiThemeContext: UseEuiTheme) => {
})}
cursor: default;

/* prevent potential unwanted overrides from parent elements */
-webkit-text-fill-color: currentColor;
font-size: ${euiFontSizeFromScale('xs', euiTheme)};
font-weight: ${euiTheme.font.weight.medium};
${euiNumberFormat(euiThemeContext)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { UseEuiTheme } from '../../../services';
import {
logicalCSS,
logicalShorthandCSS,
euiCanAnimate,
highContrastModeStyles,
} from '../../../global_styling';
import { euiButtonDisplayStyles } from '../button_display/_button_display.styles';
Expand All @@ -29,12 +28,6 @@ export const euiButtonEmptyStyles = (euiThemeContext: UseEuiTheme) => {
euiButtonEmpty: css`
${displayStyles.euiButtonDisplay}
${logicalShorthandCSS('padding', `0 ${euiTheme.size.s}`)}

/* Change the easing, quickness to not bounce so lighter backgrounds don't flash */
${euiCanAnimate} {
transition-timing-function: ease-in;
transition-duration: ${euiTheme.animation.fast};
}
`,
isDisabled: displayStyles.isDisabled,
// Sizes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,16 +626,20 @@ exports[`EuiColorPicker prepend and append 1`] = `
class="euiFormControlLayout euiFormControlLayout--group emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-prepend"
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side"
>
<div
class="euiFormPrepend css-1civv6t-side-uncompressed"
class="css-yp07d4-wrapper"
>
<span
class="euiFormLabel emotion-euiFormLabel"
<div
class="euiFormPrepend css-7iwqdv-side-uncompressed"
>
prepend
</span>
<span
class="euiFormLabel emotion-euiFormLabel"
>
prepend
</span>
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -679,16 +683,20 @@ exports[`EuiColorPicker prepend and append 1`] = `
</div>
</div>
<div
class="euiFormControlLayout__append emotion-euiFormControlLayout__side-append"
class="euiFormControlLayout__append emotion-euiFormControlLayout__side"
>
<div
class="euiFormAppend css-1civv6t-side-uncompressed"
class="css-yp07d4-wrapper"
>
<span
class="euiFormLabel emotion-euiFormLabel"
<div
class="euiFormAppend css-7iwqdv-side-uncompressed"
>
append
</span>
<span
class="euiFormLabel emotion-euiFormLabel"
>
append
</span>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const euiColorPickerStyles = (euiThemeContext: UseEuiTheme) => {
}

.euiFormAppend {
padding-inline: ${euiTheme.size.xxs} !important;
padding-inline: 0 !important;
}

& > .euiFormControlLayout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`EuiDatePicker localization accepts the locale prop 1`] = `
class="euiFormControlLayout emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup"
>
<div
class="react-datepicker emotion-euiReactDatePicker"
Expand Down Expand Up @@ -491,7 +491,7 @@ exports[`EuiDatePicker localization inherits locale from context 1`] = `
class="euiFormControlLayout emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup"
>
<div
class="react-datepicker emotion-euiReactDatePicker"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`EuiDatePickerRange is rendered 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
data-test-subj="test subject string-range-wrapper"
>
<div
Expand Down Expand Up @@ -80,7 +80,7 @@ exports[`EuiDatePickerRange props compressed 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-compressed-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-compressed-static"
Expand Down Expand Up @@ -145,7 +145,7 @@ exports[`EuiDatePickerRange props disabled 1`] = `
class="euiFormControlLayout euiFormControlLayout-isDisabled euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited-disabled"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-static-disabled"
Expand Down Expand Up @@ -212,7 +212,7 @@ exports[`EuiDatePickerRange props fullWidth 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-fullWidth-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-static"
Expand Down Expand Up @@ -277,7 +277,7 @@ exports[`EuiDatePickerRange props inline renders 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited-shadow"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
>
<div
class="react-datepicker emotion-euiReactDatePicker"
Expand Down Expand Up @@ -1335,7 +1335,7 @@ exports[`EuiDatePickerRange props isInvalid 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited euiFormControlLayoutDelimited--isInvalid emotion-euiFormControlLayout-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited-invalid"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited-invalid"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-static"
Expand Down Expand Up @@ -1410,7 +1410,7 @@ exports[`EuiDatePickerRange props isLoading 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-static"
Expand Down Expand Up @@ -1484,7 +1484,7 @@ exports[`EuiDatePickerRange props readOnly 1`] = `
class="euiFormControlLayout euiFormControlLayout-readOnly euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited-readOnly"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited-readOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited-readOnly"
>
<div
class="euiFormControlLayoutIcons emotion-euiFormControlLayoutIcons-static"
Expand Down Expand Up @@ -1553,7 +1553,7 @@ exports[`EuiDatePickerRange uses individual EuiDatePicker props 1`] = `
class="euiFormControlLayout euiFormControlLayoutDelimited emotion-euiFormControlLayout-group-delimited"
>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly-appendOnly-delimited"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-delimited"
data-test-subj="test subject string-range-wrapper"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,29 @@ exports[`EuiAutoRefresh is rendered 1`] = `
class="euiFormControlLayout euiFormControlLayout--group euiFormControlLayout-readOnly emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-prepend"
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-readOnly"
>
<button
class="euiFormPrepend euiFormControlLayout__prepend css-1q2k5id-side-uncompressed-isInteractive-prepend"
<div
class="css-yp07d4-wrapper"
>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
<button
class="euiFormPrepend euiFormControlLayout__prepend css-a31npo-side-uncompressed-empty-primary-isInteractive"
>
<strong>
Auto refresh
</strong>
</span>
</button>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
>
<strong>
Auto refresh
</strong>
</span>
</button>
</div>
</div>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup"
>
<input
aria-label="aria-label"
Expand All @@ -49,25 +53,29 @@ exports[`EuiAutoRefresh isPaused is false 1`] = `
class="euiFormControlLayout euiFormControlLayout--group euiFormControlLayout-readOnly emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-prepend"
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-readOnly"
>
<button
class="euiFormPrepend euiFormControlLayout__prepend css-1q2k5id-side-uncompressed-isInteractive-prepend"
<div
class="css-yp07d4-wrapper"
>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
<button
class="euiFormPrepend euiFormControlLayout__prepend css-a31npo-side-uncompressed-empty-primary-isInteractive"
>
<strong>
Auto refresh
</strong>
</span>
</button>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
>
<strong>
Auto refresh
</strong>
</span>
</button>
</div>
</div>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup"
>
<input
aria-label="Auto refresh"
Expand All @@ -89,25 +97,29 @@ exports[`EuiAutoRefresh refreshInterval is rendered 1`] = `
class="euiFormControlLayout euiFormControlLayout--group euiFormControlLayout-readOnly emotion-euiFormControlLayout-group"
>
<div
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-prepend"
class="euiFormControlLayout__prepend emotion-euiFormControlLayout__side-readOnly"
>
<button
class="euiFormPrepend euiFormControlLayout__prepend css-1q2k5id-side-uncompressed-isInteractive-prepend"
<div
class="css-yp07d4-wrapper"
>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
<button
class="euiFormPrepend euiFormControlLayout__prepend css-a31npo-side-uncompressed-empty-primary-isInteractive"
>
<strong>
Auto refresh
</strong>
</span>
</button>
<span
data-euiicon-type="timeRefresh"
/>
<span
class="euiFormLabel eui-textTruncate emotion-euiFormLabel"
>
<strong>
Auto refresh
</strong>
</span>
</button>
</div>
</div>
<div
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup-prependOnly"
class="euiFormControlLayout__childrenWrapper emotion-euiFormControlLayout__childrenWrapper-inGroup"
>
<input
aria-label="Auto refresh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ export const euiDatePickerRangeStyles = () => {
.euiPopover {
flex: 1;
}

.euiPopover:last-child {
${logicalCSS('border-top-right-radius', 'inherit')}
${logicalCSS('border-bottom-right-radius', 'inherit')}

* {
${logicalCSS('border-top-right-radius', 'inherit')}
${logicalCSS('border-bottom-right-radius', 'inherit')}
}
}
`,
};
};
Expand Down
Loading